Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » how to make your sprite jump in a platformer
- sprinkles577345
-
Scratcher
10 posts
how to make your sprite jump in a platformer
I made the sprite move left and right. How do you get the sprite to jump and land on a platform?
- Empty-Map
-
Scratcher
100+ posts
how to make your sprite jump in a platformer
the wiki also tells how: https://wiki.scratch.mit.edu/wiki/Platformer
- 14152cool
-
Scratcher
100+ posts
how to make your sprite jump in a platformer
Hello, welcome to scratch! Don't post on old topics that are already resolved, it's called necroposting and it bumps topics to the front page. It's annoying for people who are looking for unanswered questions.
- sprinkles577345
-
Scratcher
10 posts
how to make your sprite jump in a platformer
@14152cool Thank you for telling me. I didn't know.
- chipm0nk
-
Scratcher
100+ posts
how to make your sprite jump in a platformer
You could use Y velocity variables to create realistic jumping.
Hope this is helpful! Good luck!
when green flag clicked
forever
set [Y velocity] to ((Y velocity) * (0.9))
change y by (Y velocity)
if <<touching [Ground] ?> and <key [up arrow] pressed?>> then
set [Y velocity] to [13]
end
end
Hope this is helpful! Good luck!

- openPoll
-
Scratcher
1000+ posts
how to make your sprite jump in a platformer
Please do not post on old, resolved topics. This is called necroposting and is not allowed.
- Discussion Forums
- » Help with Scripts
-
» how to make your sprite jump in a platformer