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:
- Stay on the player sprite.
- From Events, place a when space key pressed block in a different area from the rest of the code.
- From Control, place a IF/THEN ELSE block.