Quest 9 of 22

Jump and Land

Gravity pulls your hero down. A jump sends them up first.

About 25 min 25 XP

You’ll learn

  • Add a jump rule
  • Check gravity
  • Test a gap

Quest steps

  1. Add a jump on Space when the hero is on the ground.
  2. Let gravity bring the hero back down. Try tapping Space while in the air.
  3. Place two platforms near each other and test whether the jump reaches the second platform.
Say to Genie
Make my character jump when I press Space. Only allow a jump while the character is on the ground.