Discuss Scratch

gem_emerald_5
Scratcher
8 posts

How to make gravity in scratch!

1. create a sprite
2. make a new variable, to remember what it's for, name it Y volecity or speed.
3. place a when clicked block
4. Under that get a forever block.
5. Then in the forever block place a change y by block.
6. Add the variable to the change y block, so now it will be change y by Y volecity.
7. Place a when clicked block.
8. Under it place a forever block.
9. In the forever block put a change Y velocity by block and change it to -1 or -10.
10. Place a when clicked block.
11. Under it put a forever block.
12. Inside the forever block place an if block then set it to touching a certain sprite or touching a certain color.
13. Inside the if block place a variable set block and set it to 0.
14. Now we will make the sprite jump, get a when sprite clicked or when key pressed block and place it down.
15. Under the when sprite clicked block or when key pressed block place a set Y velocity to 15 block.
Important please read:
Make sure that these blocks are in the sprite that you want to add gravity to or else you'll add gravity to the wrong sprite.





Fun fact of the day: In 2032 Earth has a 1.9% chance of colliding with an astroid.

Last edited by gem_emerald_5 (June 22, 2026 18:23:00)

AdaVesta_
Scratcher
1000+ posts

How to make gravity in scratch!

SushiCat_75
Scratcher
1000+ posts

How to make gravity in scratch!

This is not a place to put this, instead make a tutorial project.
This is a forum for talking about the open source code that Scratch is built on.
Paddle2See
Scratch Team
1000+ posts

How to make gravity in scratch!

It's really nice that you want to help out with a guide! However, we have a number of them in the forums already and we don't have a good way to showcase any more. If you want to make a guide in a Scratch project, that would be fine. You could advertise it in the “Show and Tell” section too.

There are lots of other ways to help out in the forums too. Helpful Scratchers are always welcome in the “Questions About Scratch”, “Help With Scripts”, “Requests” and other sections. Just look around and ask questions

Powered by DjangoBB