Step 20: TIE-Bomber Time-Bomb Collision 1

Goal:


We now need to code a way to destroy the TIE-Bomber.

We are going to make it so that it can only be destroyed by the Time-Bomb and to do that we need to add a collision code for it.

Steps:

  1. From Control, place an IF statement block after the first IF statement.
  2. From Sensing, place a touching mouse-pointer block into the IF statement, and set it to Time_Bomb.
  3. From Variables, place a change by block.
  4. Set the variable to Score and the amount to 1.

Code:


Click to replay