1 Reply Latest reply on Jan 30, 2007 4:33 AM by sergiourra

    move forward

    akasama
      Hi! i am working on game that u see the character from above(i dont know to say it...like gta for example).
      Hmm... this is part of what i have done to my character:
      if (Key.isDown(Key.LEFT)) {
      _rotation -= 9;
      }
      if (Key.isDown(Key.RIGHT) {
      _rotation -= -9;
      }
      How can i make him go forward or backwards?
        • 1. Re: move forward
          sergiourra Level 1
          Do you have a frame by frame walking cycle of the character?

          In this case, you must use:

          if (Key.isDown(yourKey) {
          yourMovie.prevFrame();
          }

          You can use an IF for jumping from frame 1 to the last frame of the MC with the character.