Step 7: Fight the Boss 2

Goal:


We now need to tell the Boss how much health to lose when we hit it with one of our bombs.

The code is almost identical to the laser collision code so we are going to duplicate the code we just made and then simply edit it.

After this we are done coding the Star Destroyer!

Steps:

  1. Right-Click the IF statement we just made and click on Duplicate
  2. Drag the new code below the previous IF statement.
  3. Change the touching block from Red_laser to Time_Bomb.
  4. Change the amount in the change Boss Health by block from -1 to -5.

Code:


Click to replay