Skip to main content
Participant
June 3, 2008
Question

keyboard command "kicking"

  • June 3, 2008
  • 1 reply
  • 305 views
I have a movie clip with kick action applied to keyboard command that works once but
will not repeat. How do i make it repeat. File can be accessed below

: link

Thanks in advance

This topic has been closed for replies.

1 reply

Inspiring
June 4, 2008
cherubianmoon wrote:
> I have a movie clip with kick action applied to keyboard command that works
> once but
> will not repeat. How do i make it repeat. File can be accessed below
>
> : http://gina-cruz.net/game.fla
>
> Thanks in advance


the both clips where the guy jumps, give them a name, lets say "j_mc".
and on the trigger after the gotoandstop tigger also the jump clip with
"this.j_mc.play()". otherwise the clip will only run when the frame is
initialised the first time after the gotoandstop.

your button scripts should look like this

if(Key.isDown(Key.DOWN)){
this._y += 5;
this.gotoAndPlay("jumpleft");
this.j_mc.play()
}

HTH