Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How to add gravity in my games?
- RokCoder
-
Scratcher
1000+ posts
How to add gravity in my games?
Store the horizontal and vertical velocity components of the sprite separately (xSpeed and ySpeed). Add a gravity constant (gravity) to the vertical velocity component (ySpeed) each frame.
- PikachuAssist
-
New Scratcher
9 posts
How to add gravity in my games?
Maybe this can help you..
https://www.mvcode.com/lessons/learn-to-make-a-character-do-realistic-jumps
https://www.mvcode.com/lessons/learn-to-make-a-character-do-realistic-jumps
Last edited by PikachuAssist (May 11, 2017 16:25:16)
- asivi
-
Scratcher
1000+ posts
How to add gravity in my games?
Last edited by asivi (May 11, 2017 19:10:29)
- Discussion Forums
- » Help with Scripts
-
» How to add gravity in my games?
