Goal:
We want to start with code that will make sure our variables all get reset properly whenever we restart the game.
After the variables are reset then we can start the game.
Steps:
- Select the Backdrop.
- From Events, place a When flag clicked block.
- From Variables, place 2 set blocks.
- Set the first variable to “Blaster Shots:” and its value to 10.
- Set the second variable to “Score” and its value to 0.
- From Events, create a broadcast message called “GameStart!”