Can someone fix my FLA? :(

ok so the object is one guy chasing another. I want the second guy to jump by pressing the space bar. The thing that confounds me is that it works fine for a bit, but will stop working after a few seconds. It seems simple… the guy running is a mc. When space is pressed, it skips to a different frame in the mc (the jump animation).

I threw in the “jumpok” variable so once the jump animation starts it can’t be restarted till the guy lands.

argh

if anyone can figure out the problem, you don’t have to repost it fixed or anything, just let me know the code error.

thanks!

Just thought I’d mention in the Animation/People/ Section of flashkit there’s a similar project where a woman is running and clicking the mouse she spazzes out and falls over… it reloops after completion… Walking lady

and man jumping
jump! jumo!

Maybe that will help…

hmmm those seem to be done with buttons though… with a button you can make it so that only one frame is clickable, wheras with key input you can press a keyboard button at any time.

Of course that’s my non-educated opinion. I could be completely wrong.

Write an action script function using the

if (Key.isDown(Key.SHIFT)) {
<goto swf for the jumping guy> ;

} else {

<loop the running mc> ;

}
}

Just an idea…