one thing that I learnt when making "Rec Jp Fight" is to make all the animations independent of press/touch commands.
I mean, instead of using "when right button pressed, then player walk right and do walk animation to right" you just put: "when right button pressed, then walk right" and in other event you put "if player is walking and platform vector X > 0, then do the walk animation to right". I think it is better, because when coding the AI, you just say to the AI "go right" and the animation will follow the command correctly. so, when I am coding my AI, I just say the AI to do things and I dont worry dealing with the animations.