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

#1 2011-11-15 20:34:49

Dobermann
New Scratcher
Registered: 2011-11-15
Posts: 3

Up, Down, LEft And Right Movements.

Well, Im trying to get a smooth left right up and down movement code in o a cube, but i cant seem to figure it out, this is what i got, but its very chopps, and cannt be used as a multiple.


<when[  ]key pressed>
<change y by(

Offline

 

#2 2011-11-15 20:38:49

shiguy101
Scratcher
Registered: 2010-11-17
Posts: 1000+

Re: Up, Down, LEft And Right Movements.

<when green flag clicked>
<forever>
<if><key[  ]pressed?>
<change x by( 1
<end>
<if><key[  ]pressed?>
<change x by( -1
<end>
<if><key[  ]pressed?>
<change y by( 1
<end>
<if><key[  ]pressed?>
<change y by( -1
<end>
<end>

Offline

 

#3 2011-11-16 21:19:19

adminhaunted
New Scratcher
Registered: 2011-11-15
Posts: 6

Re: Up, Down, LEft And Right Movements.

balance eh, that was a good fix.

Offline

 

Board footer