Step 1: Boss Start Code 1

Goal:


The first thing we need to do is to set up our boss right as the game starts.

We need to create a variable to keep track of the boss’ health.

Steps:

  1. From the sprite menu, select the sprite called Star_Destroyer.
  2. From Events, place a when green flag clicked block.
  3. In Variables, click the “Make a Variable” button, and in the window type “Boss Health”.
  4. From Variables, place a set to block.
  5. Set the variable to Boss Health and the amount to 150.
  6. In Variables, make sure Boss Health does NOT have a check mark next to it.

Code: