4 Replies Latest reply on Sep 10, 2010 4:12 AM by Ned Murphy

    Adobe Flash CS5 Platform Game Movement With Arrow Keys Help!?

    iLiveUdie/Diztort Level 1

      Hello, I am a beginner to flash gaming. I am making a platform game, but  can not reverse my character when he goes backwards. This is my code  for left and right:

      if (Key.isDown(Key.RIGHT)) {
      _x += speed;
      if (Key.isDown(Key.LEFT)) {
      _x -= speed;

      How Can I reverse it so when it goes LEFT, the character turns all the  way around?