3 Replies Latest reply on Apr 2, 2013 2:50 PM by Production Monkey

    How do i move a sprite across the stage using the arrow keys on my keyboard?


      I'm a high school student and i love director. I recently have become interested in game development, and i am completely lost in how to move a sprite across the stage. I have tried toying around and google hasn't been very helpful. An example of something i found is

      on keyUp

        if (_key.keyCode = 124) then sprite(4).locH = sprite(2).locH -25

        if (_key.keyCode = 123) then sprite(4).locH = sprite(2).locH -25

      end keyUp


      I don't understand why this wont work.