Step 1: X-Wing Lives

Goal:


Most games of this type have a set number of times the player can be hit before you lose, so we need to create a way to give and take away lives from the X-Wing.

Steps:

  1. From the Sprite menu, click on the sprite called X-Wing.
  2. In Variables, click the “Make a Variable” button and in the window type “Lives.”
  3. From Variables, place a set to block right after the set to block for Score and Speed.
  4. Set the variable to Lives and the amount to 3.
  5. Make sure that in Variables, Lives has a check mark next to it so you can see it on the screen.

Code: