🎯 What you'll learn: How to simulate gravity in Scratch using a variable, making a character feel realistic as it falls and jumps. This is the most important technique in platform games like Mario!
1-A 2-A 3-A 4-A | 5 a negative number 6 space/up 7 = forever [ change y-speed by -1; change y by y-speed; if touching ground: set y-speed 0 ] 8 = if touching ground and space pressed: set y-speed to 12 9 = It makes natural accelerating/decelerating motion | 10 = Reset to the start position (lose a life)