I Need A Jump Script For A Big Game!
Offline
This is a basic jump script:
First you need to program the jump:
<when[ space/up arrow ]key pressed><if> <touching color[(color of ground)]><repeat( 10)<change y by( 9)
Now for the ground sensing. First of all, you need to edit the sprite that's going to be jumping. On the very bottom of it, put a thin strip going along the bottom of the sprite and change the color to one that is not the ground color or original. It doesn't matter which one you choose, as it's not noticeable.
<when green flag clicked> <forever><repeat until><color[ (color of the thin strip on the bottom of the sprite) ]is over[ (color of the ground)><change y by( -4 )
If you're a bit uncertain on the scripting, go to Cube World and check out the scripts there.
Offline
I like this project for jumping:
http://scratch.mit.edu/projects/archmage/72848
Very easy to follow.
Offline