How do you move up or down 10 steps???
(Please tell me in blocks.)
Offline
Depending on if you want it relative to the direction or not.
Last edited by colorfusion (2010-08-07 09:38:37)
Offline
<when[ up arrow ]key pressed>
<point in direction( 0
<move( 10 )steps>
<when[ down arrow ]key pressed>
<point in direction( 180
<move( 10 )steps>
You can also do it this way:
<when[ up arrow ]key pressed>
<change y by( 10
<when[ down arrow ]key pressed>
<change y by( -10
Offline
Does it have to use steps? Because if you're just trying to make a 4-way direction system, you're better off using the change x/y blocks instead.
Kind of like this:
<when green flag clicked>
<forever>
<if><key[ up arrow ]pressed?>
<change y by( 10
<end>
<if><key[ down arrow ]pressed?>
<change y by( -10
<end>
<if><key[ left arrow ]pressed?>
<change x by( -10
<end>
<if><key[ right arrow ]pressed?>
<change x by( 10
<end>
<end>[/blocks]
Last edited by hmnwilson (2010-08-08 13:22:43)
Offline