Discuss Scratch

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?
theonlygusti
Scratcher
1000+ posts

how to make your sprite jump in a platformer

Griffpatch has made an awesome tutorial for this.


https://scratch.mit.edu/projects/67727504/
Empty-Map
Scratcher
100+ posts

how to make your sprite jump in a platformer

Volcano1Productions
Scratcher
1 post

how to make your sprite jump in a platformer

OSHteam
New Scratcher
1 post

how to make your sprite jump in a platformer

14152cool
Scratcher
100+ posts

how to make your sprite jump in a platformer

OSHteam wrote:

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.

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.

Powered by DjangoBB