ScratchData LogoScratchData
Back to cauzality's profile

Better Gravity (Color based)

CAcauzality•Created December 21, 2014
Better Gravity (Color based)
0
0
15 views
View on Scratch

Instructions

arrows, space see inside

Description

here you have a vertical speed variable. Jumping make your speed positive. Gravity shrinks it frame by frame until its negative and you start falling. So your verticle speed sort of does this when you jump: 0, 0, 0, jump, 10, 8, 6, 4, 2, 0, -2, -4, -6, -8, -10, land, 0, 0, 0, 0, 0 You move up when it's positive and down when it's negative. So this looks more realistic because you slow down, stop, and fall back down instead of just bobbing up and down.

Project Details

Project ID40900500
CreatedDecember 21, 2014
Last ModifiedDecember 21, 2014
SharedDecember 21, 2014
Visibilityvisible
CommentsAllowed