Step 24: Player Jump 6

Goal:


If the player sprite is not in its usual level position and hits spacebar, the player sprite will do its double jump.

Then we want to set the double jump variable to true so that the player cannot jump again after it has used its double jump.

Steps:

  1. From Variables, place a round double_jump block in the right side of the = block.
  2. Set the left side of the = block to False.
  3. From Variables, place a set block.
  4. Set the variable to double_jump.
  5. Set the value to True.

Code: