This belongs in Help with Scripts, so I'm asking for it to be moved.
If you mean, jumping, like, in a platformer, you'll need velocity and ground detection. In other words, a sensor costume or sprite.
See this page for more info.
Offline
BunnyFire wrote:
plz help me i need it for a school project :3
When space is pressed, repeat 10 times(y=y+2) then repeat 10 times(y=y-2). This will give you a basic jump animation.
Hope this helped,
MINECRAFTPE123
Offline
when gf clicked forever if <key [space v] is pressed repeat [10] times change y by [5] end repeat [10] times change y by [-5] end end endJust so you can see a bit better
Offline
mrn0body wrote:
when gf clicked forever if <key [space v] pressed?> repeat (10) change y by (5) end repeat (10) change y by (-5) end end endJust so you can see a bit better
Even better
Last edited by Hardmath123 (2013-01-01 00:36:40)
Offline
Or, even better than that:
Gravitation wrote:
This belongs in Help with Scripts, so I'm asking for it to be moved.
If you mean, jumping, like, in a platformer, you'll need velocity and ground detection. In other words, a sensor costume or sprite.
See this page for more info.
1. Person gets better script with velocity.
2. Person also learns of the Scratch Wiki.
It's a much better deal, in my opinion, than simply handing an answer out on a silver platter.
Offline