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

#1 2013-02-10 21:25:48

biovball
New Scratcher
Registered: 2013-02-10
Posts: 1

Getting arrow key to make sprite move indefinitely in one direction

I want to make it so that when the up arrow, down arrow, etc is pressed the sprite will move in that direction (gliding) until another arrow is pressed. How can I go about doing this?

Offline

 

#2 2013-02-11 03:57:19

Sqervay
New Scratcher
Registered: 2012-10-28
Posts: 52

Re: Getting arrow key to make sprite move indefinitely in one direction

Try it with repeat-until loops, I can't show you, I'm bad in Scratchblocks...

Offline

 

#3 2013-02-11 18:04:58

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

Re: Getting arrow key to make sprite move indefinitely in one direction

when gf clicked
forever if <key [up arrow v] pressed?> //Change to the key you want
 change x by [1] //Experiment with changing x and y values to move your sprite
end


I don't know why you say goodbye, I say hello!  big_smile

Offline

 

Board footer