What is a good script to make your sprite jump?
Offline
In short, it depends on what other movement script you have. Do you require the sprite to not be touching the ground, but to be hovering slightly over it? Do you want realistic gravity (in other words, velocity)? Do you want to use sensor sprites/costumes? Do you want the sprite to "jump" or just teleport higher? If you answered yes to any of those questions, it will become more difficult. If you answered no to all of them:
When Flag Clicked Forever if<touching ground> { if<key up arrow pressed> { change y by 50 } } else { change y by -5 } }
Offline