This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-09-27 22:44:50

iiZyKloN
New Scratcher
Registered: 2011-09-27
Posts: 2

How to Fix a the Moonwalk Glitch

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

 

#2 2011-09-27 23:01:44

videogame9
Scratcher
Registered: 2008-05-12
Posts: 1000+

Re: How to Fix a the Moonwalk Glitch

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)


http://img641.imageshack.us/img641/4118/newvg9logo.png
QUOTE OF THE RIGHT NOW: why are we arguing about dead babies? -videogame9

Offline

 

#3 2011-09-27 23:41:52

iiZyKloN
New Scratcher
Registered: 2011-09-27
Posts: 2

Re: How to Fix a the Moonwalk Glitch

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  smile

Offline

 

Board footer