[blocks]<forever>
<if><< <not> <touching color[
<change y by( -2[/blocks]
or any other negative number
Last edited by Bluekingice (2008-02-04 18:41:24)
Offline
When you say "stand on", I would guess that you also have an interest in what would happen if there wasn't something to stand on (otherwise you could just set the y-position of the sprite and leave it at that "level").
This is a common question and I've been collecting examples that show how to move/jump/stand/bounce in a demo gallery. Like most things in programming, there are lots of different ways to approach the problem, there isn't really a right or wrong way. What's important is to have the sprite act the way you want. Therefore, I've gathered examples from different authors into the gallery:
http://scratch.mit.edu/galleries/view/9206
Hope this helps.
-MrEd
Offline
cool idea, i needed to learn that to!!! oh, but, bluekingrice does NOT rule!!!! k, got that!!! he has to much ego for his own good ;p
Offline
sparkygirl wrote:
oh, but, bluekingrice does NOT rule!!!! k, got that!!! he has to much ego for his own good ;p
sparkygirl, please remember that the Terms of Use for this site call for people to be respectful. This is not the place for insults of any kind.
Offline
sorry/....
Offline
Is "Jetpack Girl" still included with scrath? That has a basic example of gravity and standing on platforms.
Offline