[SOLVED] How do I stop the player to attack, then resume?

I’m trying to make a function where the player stops moving, attacks, and then continues moving if the button is still held down. Any help?

You could do that with variables and timers…

Condtion: Space Key is pressed
Condition: Variable = 0
Action: stop player
Action: Variable set to 1

Condition: Space Key is pressed
Condition: Variable = 1
Action: attack
Action: Variable set to 2

You might need to add timers in there to control the speed of progression.

Didn’t use this, but I figured it out.

All I did was on the Right and Left key pressed, added if the current animation != 2 (Punch)