Sprite animation, does not play all frames

I am doing a game in which the player attack with a sword the same has 9 frames of attack, when I tylo x the same should reproduce all frames of attack but does not reproduce it only shows a frame and when I release the key returns the animation player idle

Hi,
According to your screenshot, as long as you press x, the animation is reset to #3 at each frame (20 to 60 times per second). A “trigger once” condition would probably help.

When you stop pressing x, one of the conditions above is correct, so the action is executed and the animation switches to 0 or 1. You need to add more conditions if you don’t want them to execute too soon.

1 Like