Ok, so I'm making a game and have most of the player's movement down except for one thing: when both the left and right arrow keys are pressed, then the opposite arrow of the last arrow pressed is held the player does "the moonwalk". Any way to fix this?
Here is the code I'm using: http://i1084.photobucket.com/albums/j403/iiZyKloN/ScratchCode.png
(Sorry for the link, but it won't let me use BBCode as a newbie, sorry for any inconvenience)
Thank you for your time.
Offline
Change <key [left arrow] pressed> to <<key [left arrow] pressed> and <not <key [right arrow] pressed>>>.
And vice versa.
Last edited by videogame9 (2011-09-27 23:02:00)
Offline
videogame9 wrote:
Change <key [left arrow] pressed> to <<key [left arrow] pressed> and <not <key [right arrow] pressed>>>.
And vice versa.
that was partially right, but you gave me the idea that fixed everything else, so thanks
Offline