gravity:<when green flag clicked>
<forever>
<if> <touching color[ the color the sprite is standing on
<change y by(0
<end>
<if> <not> <touching color[ same color ]>>
<change y by( -5
<end>
<end>
it works like gravity
Last edited by keroro645 (2008-06-20 16:49:17)
Offline
The Color Touching Color block will return a true value if the first color exists in the costume of the sprite that is running the block AND that color is in contact with the second color (either in the background, or on another sprite). It is very useful for testing to see if part of your sprite is touching a specific color.
As for the standing on platforms...the script keroro645 supplied you looks like it should work. If you are still having trouble with it, Share the project to the web and update this thread with a link to the project and I'm sure you will get the help you are looking for.
Offline
It Means (If Color <> is touching color<> Do This, so basically if one certain color is touching another certain color this will happen.
Offline