Download and open the Toytrail 2B game
from here:
Run the game by clicking the green Run
arrow.

Our game is starting to look a bit better,
but we still have a good way to go.
|

1

Show Me |
Destroy the Bullets
It is important to destroy the bullets after they leave the room, otherwise
there gets to be more and more of them and the game has to try to remember where
each one has gone to. This will make the game slower and slower, so it's
best to destroy any bullets that leave the room.
Double click objBullet to open its properties.
Click Add event. Choose Other > Outside Room
Click the Main1 tab, and drag the Destroy Instance
action to the actions panel.
You will not really notice any difference when you play the game.
|
|
|

2

Show Me |
Make an Explosion Appear When the Bullet Hits the Enemy
Double click to open the properties for the objEnemy Click the collision
event for objBullet and click the Main1 tab Drag the 'Create Instance' action
to the actions panel Choose to create objExplode

Make sure that you tick Relative,
otherwise the explosion will be created at (0,0) which is the top left of the
screen! Test your game to make sure you
have explosions appearing in the right place. |
|
|

3

Show Me |
Make the Clowns Advance Down the Screen
We need a little more excitement in our game, so we will change it so the
clowns come towards the player.
Double click objEnemy to open its properties.
Add a Create Event
Drag the Set Vertical Speed to the
actions panel
Set the speed to be 0.2 |
|
|

4

Show Me |
Add in Background Music
To add in background music, we first add a controller object. Click
create object 
Name it objController. It does not have a sprite because we don't want
to see it in the game.
Add a create event for it.
From the Main1 tab, drag 'Play Sound' to the actions panel
Choose sndBackground, and set Loop to be true (so it keeps on playing)

Test your game. |
|
