Step 19: Player Jump 1

Goal:


Let’s set up what happens when we press the spacebar at any point in the game.

The double jump will be tied to pressing the space bar.

Steps:

  1. Stay on the player sprite.
  2. From Events, place a when space key pressed block in a different area from the rest of the code.
  3. From Control, place a IF/THEN ELSE block.

Code: