Apply animations - Please read the complete text

I have put animations through actions in my game, one of those is to walk, and it do it normally. It is a fighting game so I want the player could hit while walking, for that I made other sprites for the player hitting while walking, but I do not know how to make it. The key F is to hit and the arrows to move, so when I press both the player stays on the first frame of hitting on its place not when walking.

am I clear? tell me if need more explanation

What about something like this?

Not exactly like that because I have an extra animation, but the check for f key pressed while player is moving and f key pressed while player is not moving might work.

Thanksss, It really works very well

1 Like