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