Download and open the Toytrail 2A game from here:

Run the game by clicking the green Run arrow.

Let's get started making it better!


1


Show Me

Room Background

A background image file has already been added for you.  Click on the + next to Backgrounds.

Click the Backgrounds Tab of the Room Properties

Click the drop down box beside No Background, and choose bgSky


2


Show Me

Set the Room Caption

Click the Settings Tab, and change the Room Caption to "Clown Invaders"

Run the game and check the caption at the top of the window.

 


3


Show Me

Add in a Shooting Sound

We want to make a shooting sound when a bullet is fired. 

Open the properties for objPlane by double clicking.

Click the Press Space Event

Click the Main1 tab, and drag the 'Play Sound' action to the actions panel. 

Select the sndShoot sound

Run the game and check the sound.


4


Show Me

Add an Explosion Sound

We will make an explosion sound when the bullet hits the clown.

Open the properties for objEnemy. Choose the collision with objBullet event.

From the main1 tab, drag the 'Play Sound' action to the actions panel. 

Select the sndExplosion sound.

Run the game to test it.

 


5


Show Me

Fix the Keyboard Event

You will have noticed that when you press the Spacebar bullets keep firing if you hold it down. 

Open the objPlane properties.

Right click on the Keyboard Space Event.

Change it to a KeyPress event.  Keypress will not keep firing bullets if you hold the key down.

Run the game to test it.

 

Next TrailPoint