My question:
If i want my sprite to stop, for example,
If touching colour X, stop moving (in that direction)
then how do i program it?
Offline
Try this, if the sprites touching the colour X it will stop moving
[blocks]
<forever>
<if><< <not> <touching color[ X ] >>
<move( X )steps>
<end>
<end>
[/blocks]
The sprite will start moving again if it stops touching the colour or you could try this
[blocks]
<repeat until><touching color[ X ]
<move( X )steps>
<end>
[/blocks]
Which will stop the sprite from moving forever after it touches the colour X
Last edited by what-the (2009-12-23 07:49:07)
Offline