Open the how-to
Starter file: Download Jumping Game (.sb3) · File → Load from your computer · then green flag. Or rebuild from the steps below.
You will make: a character that jumps with the space bar, falls with gravity, and lands on a platform.
Set the stage
- Load the Jumping Game starter (
.sb3), or open a new Scratch project and delete the default cat. - Paint or pick one player sprite (a duck, a kid, a blob: anything with feet).
- Paint a simple platform costume on a second sprite, or draw a ground strip on the backdrop.
Blocks matchaxmoxie cares about
- when green flag clicked · start clean every play
- forever · keep checking keys and gravity
- if key space pressed? · jump once, not forever fly
- change y by · up for jump, down for fall
- if touching platform / color · stop falling when you land
Build it · KISS
- On the player: green flag → go to a start x/y near the left → set a variable
y speedto 0. - Forever: if space pressed and you are on the ground, set
y speedto a positive number (try 12). - Still in forever: change y by
y speed, then changey speedby a small negative number (try −1) so gravity pulls down. - If touching the platform (or ground color), set y to sit on top and set
y speedto 0. - Optional: left/right with arrow keys using change x by.
Classroom check
Can you jump, land, and not sink through the floor? Good. Now remix costumes or add a second platform.
What would you add next? A score for landing, a moving platform, or a soft “oops” sound when you miss.