PDA

View Full Version : [AS3] Character walking left, right and kicking, Code Improvement


nightkarnation
06-26-2009, 12:58 AM
Hello!

In the following FLA I have a character from a game that walks left, right and kicks when pressing the up arrow key but if I want him to kick and then walk right pressing the right arrow key...It will move right but not walking only kicking

Please take a look at the FLA to understand what I mean,

If you know how to fix this, please let me know

Thanks a lot in advance!!

lemoncurds
07-11-2009, 11:58 PM
ermm maybe you could try and swap around the frames on the hero, so he kicks first, and then when you press the right arrow key change the code so it stops at frame 15. That way he'll kick and then walk right.