Smog Cloud Madness

Now that you have all the parts to the game, you want to tell Game Maker to advance to the next level if there is more than one room. Creating levels that become more challenging and difficult for the players as they advance help create challenge for players.

Start by double-clicking the star object in the objects folder. Once object properties window appears, click the add event button and select collision. From the drop-down menu select the raindrop object.

From the control tab on the right of the object properties window, drag the test instance count action into the actions column of the object properties window. When the test instance count actions window appears, use the context menu to select the raindrop object and click ok to save the action.

WHY DID I DO THAT?

You want the star block to constantly check how many raindrops are currently in the game. If there are no raindrops left then Game Maker will move to the next level if there is one. Otherwise it will end the game.

From the control tab on the right of the object properties window drag the start block action into the actions column. You will see the start block appear to the right of the action above it.

WHY DID I DO THAT?

Start and stop blocks help you organize your instruction so that Game Maker can make sense of it. You usually use start and stop blocks when you have a set of instructions that are checking to see if something is true or false.

From the main1 tab on the right of the object properties window, drag the check next room action into the actions column. Then from the control tab on the right of the object properties window, drag another start block to the actions column and place it below the check next room action. Like the last start block you used, it will appear to the right of the action above it.