Hi,
I'm looking for an easy, effective way of choosing a RANDOM direction (90, -90, 180, or 0). I'm presuming you'd have to assign a random number to a variable, then set direction to the variable, but I'm not entirely sure how to assign random numbers out of four choices.
HELP ME!
Inkstand
Offline
you can but you click the numbers and enter what ever u want
<point in direction( 56 or whatever
Last edited by alexpja (2009-02-19 02:04:56)
Offline
By RANDOM, I mean 'So that I don't set it'.
Offline
How about this?
[blocks]
<when green flag clicked>
<point in direction( (( <pick random( 0 )to( 3 <*> 90 ))
<move( 100 )steps>
[/blocks]
Remember that 3*90 = 270 is the same direction as -90.
Offline
Paddle2See wrote:
How about this?
[blocks]
<when green flag clicked>
<point in direction( (( <pick random( 0 )to( 3 <*> 90 ))
<move( 100 )steps>
[/blocks]
Remember that 3*90 = 270 is the same direction as -90.
I was about to post that...
Offline
Genius... Thanks heaps
Offline