|
If you have a static engine, it's assumed that you have events for changing his animation to stopped if he's not moving or walking when he moves.
So, obviously, when you have an event that says when fire 2 is pressed, change his animation to swing.
Unfortunately, you have an event that's constantly changing the animation to stopped or walking if he's moving.
So, either set a value to 1 when the user presses fire 1 and add the event "(whatever variable you chose) is different than 1" to both the stopped and walking animation events. Set it back to 0 when the animation finishes.
Your other option is to just add an event that says "swing animation is not playing" to the walking and stopped events, but the other way ensures it will work.
--------------------
|