Step 8: TIE-Bomber Lose Life

Goal:


We now need to do the same thing to our TIE_Bomber.

Steps:

  1. From the sprite menu, select the one called TIE_Bomber.
  2. Find the block of code that deals with the TIE-Bomber collisions and then the IF statement that deals with the Bomber hitting the X-Wing.
  3. From Variables, place a change by block after the “Change score by -5” block.
  4. Set the new block’s variables to Lives and the amount to -1.
  5. From Events, place a broadcast block after the new change by block, and set it to Hit.

Code: