Step 1: Bomb Key Assignment

Goal:


Every action you take in a game needs to have a key associated with it in order to tell the game what action you are trying to take.

We are going to assign the ‘z’ key to be the firing button for our bomb.

Steps:

  1. In the sprite menu, select the sprite called X-Wing.
  2. From Events, place a when space key pressed block.
  3. Click where it says “space” in the block, and in the drop down menu select ‘z.’

Code:


Click to replay