Problem with the elimination of enemies

Hi I’m quite new on gdevelop5. I’ve been trying to make an animation of the enemy before it’s deleted. So once I jump on it should just smash, the player should jump again and continue, but after it smash the enemy and the player jumps the enemy still moves and eliminates the player. This is how I set it up.

But this is what happens
Gdev%20Error

What I’m doing wrong?

That’s because your variable for move the enemy is still true.
Set them to “death” at the kill. Possibly also use the action “stop the object”.

1 Like