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:
- From Control, place an IF statement block after the first IF statement.
- From Sensing, place a touching mouse-pointer block into the IF statement, and set it to Time_Bomb.
- From Variables, place a change by block.
- Set the variable to Score and the amount to 1.