14 Replies Latest reply on Oct 6, 2010 10:27 PM by kglad

    Moving character help.

    JoshuaAlvey

      Hi I'm in the proccess of making a game. What I need is a control that goes along with my:

      if (Key.isDown(Key.RIGHT)){this._x += 10;} else {this._x += 0;}
      if (Key.isDown(Key.LEFT)){this._x += -10;} else {this._x += 0;}
      if (Key.isDown(Key.UP)){this._y += -10;} else {this._y += 0;}
      if (Key.isDown(Key.DOWN)){this._y += 10;} else {this._y += 0;}

       

      that will change the movieclip for an animation of his legs moving, jumping, etc.

       

      Please help!