To start with, make sure your game is open in Advanced Mode – you should see more than the 5 basic folders…


If you don’t see this option:
- Save your game
- Go to File > Advanced Mode
- Then go to File > Recent Files… to open your game again quickly.

Explosion
FYI: we will destroy whatever instances of walls/monsters that are in the middle block (where the bomb is) and each block around it.

Create event
Go into the object explosion and add the Create event with the Destroy Instances action.

The action is on the 2nd tab… Check the box for relative.


Copy the Destroy Instances action (CTRL+C) and paste it (CTRL+V) 8 times (so you have a total of 9 of them).

Change the X & Y values as shown below…
- X = 16, Y = -16

- X = 16, Y = 16
- X = 16, Y = 48
- X = -16, Y = -16
- X = -16, Y = 16
- X = -16, Y = 48
- X = 48, Y = -16
- X = 48, Y = 16
- X = 48, Y = 48
Go to “Show Information” …

Check the values. To get out of this view, click on the check mark button…


Animation End event
Add the Animation End event with the default Destroy Instance action.

Trigger
Go into the object trigger and add the Collision with person event with the following actions:
- Change Instance: changes the bomb object into the explosion object; set perform to “yes”
- Destroy Instance



Testing Level
Test the functionality of the trigger and bombs.

If it works, get it checked off – keep the game in play mode. Since you have the main controller in your testing room, it’s easy to blow it up over and over to get checked (use the “R” key to restart the room).

Keep it open in the testing level to get checked off.

Playing Level
Continue the game – hit ‘N‘ key to go to the playing level with the bombs.

When you play this game, you should get 200 points when you’ve collected all the diamonds.

Keep it open in play mode with the person in a safe place like below, or with the “room done” pop-up window.
