Hey,
So, the issue is kind of hard to explain.
Here's the cap.x:
wetransfer.com/downloads/9d69f878f080d054775bedb24d14c01520190402191117/c80dd1
When the enemy kills the player (5shots) the player is supposed to play death animation and destroy itself and respawn at the green respawn block.
This does not happen.
If anyone could take a look that would be great!
Your problem is here:
You need to also compare if damage is not equal to 5, otherwise it will start to play "Idle" again.
Like this:
Develop games in your browser. Powerful, performant & highly capable.
That fixed it! Thanks.