Pages: 1
Topic closed
How do you make blocks for your character to land on? I tried it but my sprite won't land on it. It just falls back down to the ground (because I make realistic gravity).
_____________________________________________________________________________
Don't worry about the world coming to an end, It's already tommorow in China.
Offline
The easiest way is just to make the platforms a certain color and enclose your gravity script in a touching_color script, like this:
When green flag clicked Forever if <not <touching color __ > > (Gravity script) End Forever-if
Offline
Just ignore the script at the end, that was an accident. The colors are also the different sides of the sprite, you have to paint them.
I hope I helped!
Last edited by -GizzardGulp- (2010-11-28 09:12:00)
Offline
Robot_Maniac wrote:
Don't worry about the world coming to an end, It's already tommorow in China.
Hey! (I live in China.)
Offline
mathematics wrote:
Robot_Maniac wrote:
Don't worry about the world coming to an end, It's already tommorow in China.
Hey! (I live in China.)
I guess that means that half of the world will end before the other half?
Offline
-GizzardGulp- wrote:
mathematics wrote:
Robot_Maniac wrote:
Don't worry about the world coming to an end, It's already tommorow in China.
Hey! (I live in China.)
I guess that means that half of the world will end before the other half?
The total area of China is 1.882% of the total area of the world.
And it's time to get back on-topic.
Offline
Thanks guys! It helped!
Offline
Well with blocks, and falling, you just need to do something as simple as this:
[blocks]<when green flag clicked>
<forever>
<if><< <not> <touching[ ground >>
<change{ gravity }by( -0.5
<else>
<set{ gravity }to( 0
<end>
<change y by( <{ gravity }>[/blocks]
hope I helped!
Offline
Thenuclearduck wrote:
Well with blocks, and falling, you just need to do something as simple as this:
[blocks]<when green flag clicked>
<forever>
<if><< <not> <touching[ ground >>
<change{ gravity }by( -0.5
<else>
<set{ gravity }to( 0
<end>
<change y by( <{ gravity }>[/blocks]
hope I helped!
i think he already figured it out
Offline
Topic closed
Pages: 1