This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.
  • Index
  •  » Requests
  •  » How to make Charater ONLY go Up, Down, Left and Right

#1 2011-04-18 02:42:14

Matty3414
Scratcher
Registered: 2011-04-09
Posts: 100+

How to make Charater ONLY go Up, Down, Left and Right

So i finally fixed my costume glicth now i have another problem When i press Up and Left or Up and Right or Down and Right or Down and Left (sorry if thats Confusing) My Character Goes Diagonal! Like it looks like it quickly goes up and left then up..... But thats just the Costume changing. So i only want it to up, down left and right thx guys!


http://i.imgur.com/i87ba.pngDesigner - Photoshop, C4D

Offline

 

#2 2011-04-18 03:17:42

ssss
Scratcher
Registered: 2007-07-29
Posts: 1000+

Re: How to make Charater ONLY go Up, Down, Left and Right

You have to do
if <up key down> and <not <left key down>

etc etc


Hey.  It's me SSSS, back from the dead!  smile

Offline

 

#3 2011-04-18 04:32:52

Matty3414
Scratcher
Registered: 2011-04-09
Posts: 100+

Re: How to make Charater ONLY go Up, Down, Left and Right

ummm...... i have that But It using My Up key down while simultaneously its using my left key down Witch causes it  to use both forcing it to go diagonal


http://i.imgur.com/i87ba.pngDesigner - Photoshop, C4D

Offline

 

#4 2011-04-18 04:54:09

ssss
Scratcher
Registered: 2007-07-29
Posts: 1000+

Re: How to make Charater ONLY go Up, Down, Left and Right

Matty3414 wrote:

ummm...... i have that But It using My Up key down while simultaneously its using my left key down Witch causes it  to use both forcing it to go diagonal

you also have to be
if <left key down>  and <not <up key down>>

It makes it so if either one is pressed, the other one can't be  wink


Hey.  It's me SSSS, back from the dead!  smile

Offline

 

#5 2011-04-18 05:42:45

Matty3414
Scratcher
Registered: 2011-04-09
Posts: 100+

Re: How to make Charater ONLY go Up, Down, Left and Right

Ok Thx soo much it works now I wuv you (no homo)


http://i.imgur.com/i87ba.pngDesigner - Photoshop, C4D

Offline

 
  • Index
  •  » Requests
  •  » How to make Charater ONLY go Up, Down, Left and Right

Board footer