[solved] Stop the enemy when they get hit

Hello, I’m new to gdevelop and game development in general, so I’m sorry if I don’t know much. I’m making a 2d sidecroll game and I want to make the enemies play a HIT animation and pause for a moment after they are hit by a player before moving again. When I hit it, the animation changes to HIT but doesn’t change back to move animation. I also don’t know how to make the enemy stop moving for a moment if they get hit.

thanks in advance

i found a solution, but i dont know if it is efficient

1 Like

That looks to be a good way as far as performance

Oh ok, thanks for the respond!