I am trying to make a pocket god like game. Big 3d island and little stickfigures taht walk around aimlessly.
The little stickfigure is supposed to stop when it touches water and turn around.
When flagclicked
forever
if colour black is touching colour blue
point in direction direction - 180
Is it the scripting or is it just the size of the sprite. (he's really small).

Add zip the cybug, bob the sea urchin, and firegrob to your sig!Offline
I don't know......I tried it and it worked...
what exactly is going wrong?
Last edited by ScratchReallyROCKS (2010-06-05 11:22:31)
Offline
Colour black touching blue might not be the best thing to use since other blue and black sprites might be used?..
I'd try something like
[blocks]
<when green flag clicked>
<forever if><touching color[ blue
<point in direction( -180
<end>
[/blocks]
Or something better which would be..
[blocks]
<when green flag clicked>
<forever if><touching[ Whatever Sprite the water is if it is a Spite, not background.
<point in direction( -180
<end>
[/blocks]
I'm not sure if this will fix it, but it might since the if colour is touching colour block hasn't always been the best for me
Last edited by 06dknibbs (2010-06-05 11:31:18)
Offline
Use
[blocks]
<point in direction( (( <direction> <-> 180 ))
[/blocks]
Offline
Then put wait 0.125 secs
Offline
johnnydean1 wrote:
Then put wait 0.125 secs
Or make the sprite move in that direction aswell as point the other way.
Offline
Ok thanks!

Add zip the cybug, bob the sea urchin, and firegrob to your sig!Offline
markyparky56 wrote:
Use
[blocks]
<point in direction( (( <direction> <-> 180 ))
[/blocks]
I did use that.

Add zip the cybug, bob the sea urchin, and firegrob to your sig!Offline
qwertypower wrote:
markyparky56 wrote:
Use
[blocks]
<point in direction( (( <direction> <-> 180 ))
[/blocks]I did use that.
Woot.
Offline