Step 25: Player Jump 7


Now let’s set the fall speed with our fall_speed variable!

Let’s take a step back and look at what this chunk of code does.

All this code does is make it so that if the player jumps, the game knows where they have jumped once, or jumped twice and if they have jumped twice they can’t jump any more.


  1. From Variables, place a set block.
  2. Set the variable to fall_speed and the value to 15.
  3. From Motion, place a change y by block.
  4. From Variables, place a round fall_speed block into the change y by block.