How to create gravity in scratch

How do you make gravity on scratch?

How do you make acceleration in scratch?

  1. Create a variable called sidetoside. Set it for this sprite only.
  2. Moving the Sprite Side to Side. Use the script opposite to control the side to side movement of the sprite.
  3. Slowing Down the Sprite. Combine the blocks shown opposite to create the conditional statement shown.
  4. Decelerating.

How do you make something solid on scratch?

To make something solid; when you move the sprite if it is then touching something that is solid then just move it back the way it came.

How do you code gravity?