Smog Cloud Madness

Now that you have set up your goal for your game, you want to make getting to that goal a little more challenging. After all every game needs a challenge to keep players engaged. Game designers have many tricks for creating challenges in games, but one of most commonly used ones are enemie

Start by creating a sprite and object named smog using the smog image included in the resources file.

Click the add event button and select create from the event selector window. You'll see the event you selected appear in the events column of your object properties window.

WHY DID I DO THAT?

Sometimes you want something to happen to an object as soon as it is created, usually at the beginning of the game. You can do this by using an event called create. This means that any instructions will happen when the object is created. In this case you want the smog cloud to move as soon as the game starts.

From the move tab at the right of the object properties window, drag the move fixed action into the actions column. When the move fixed settings window appears, click on the up arrow button so that it changes color from blue to red. Then change the speed from 0 to 5.

Click the ok button to save the move fixed action. You'll see the action you selected appear in the actions column.

Now that you have created the smog object, you want to tell raindrop what to do when it collides with the smog.

Double-click the raindrop object in the objects folder. Once object properties window appears, click the add event button and select collision from the event selector window. From the drop-down menu select the smog object.

From the main2 tab at the right of the object properties window, drag the destroy instance action to the actions column. When the destroy action settings window appears, click ok. You'll see the action appear in the actions column.