We're currently working up a platformer prototype using a sprite set of Batman until our own assets are ready.
I've a decent bit of functionality: run, jump, 3 combo attack with hit detection, jump off walls.
I've set it up so that if the player is moving and press attack (A), the character stops running, player loses control, and the attack animation plays. After a moment the player is given back control.
This all works alright with one exception (otherwise I wouldn't be posting!):
If the player holds down either move key (left or right arrow) while also attacking, once the attack animation is finished the character moves but he slides (keeps his standing animation pose) instead of triggering the run animation.
I've tried a couple of things to fix this but I can't seem to get around it! Any advice would really help.
Here's the link to the capx file: mediafire.com