Discuss Scratch

loris12
Scratcher
2 posts

How to add gravity in my games?

help
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.
marek12306
Scratcher
16 posts

How to add gravity in my games?

loris12 wrote:

help

Scratch Wiki (Scratch's Wikipedia) will help u:GRAVITY
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

Last edited by PikachuAssist (May 11, 2017 16:25:16)

asivi
Scratcher
1000+ posts

How to add gravity in my games?

https://wiki.scratch.mit.edu/wiki/Gravity

Sorry, already @marek12306 did post the link.

Last edited by asivi (May 11, 2017 19:10:29)

loris12
Scratcher
2 posts

How to add gravity in my games?

thanks to all of you

Powered by DjangoBB