1 Reply Latest reply on Jun 4, 2008 5:33 AM by Newsgroup_User

    keyboard command "kicking"

    cherubianmoon
      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

        • 1. Re: keyboard command "kicking"
          Level 7
          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