first, use private variables for characters.
If you press attack while walking, the animation flashes one frame for a split second and then she keeps walking. I want to have it so that when you press attack, the command overrides the movement, she stops moving, and the attack animation comes out.
this is because the walk animation is overriding it on the same tick or the one after it. You have to implement a check to stop the walk animation from happening if the character is attacking.
is walking
character animation Attack not playing >> set animation to walking
why you can switch animations in the middle of the attack.
you have to implement another check to see if an attack is playing or not. Construct knows nothing of "attacks" or "characters". All it sees are your events. Add.. animation punch is not playing to the kick events, and vice versa.