Download and open the Toytrail 2C game from here:

Run the game by clicking the green Run arrow.


1


Show Me

Make the Bullets go Faster

The bullets are moving far too slowly.

Double click objBullet to open its properties.

In the Create Event, double click to open the Vertical Speed action.

Change the speed from -2 to -20

What would happen if we set the speed to be +20?


2


Show Me

Fix the Score

You will have noticed that when you hit the clown with a bullet, the score goes to 5, but then it doesn't get any higher.

Double Click objEnemy to open its properties.  Click the collision with objBullet event.

Double click the Set the Score to 5 Action

Tick the Relative check box.  (Relative means that the score will be 5 more than it was before)

Run the game to test it.  The score should go up in 5's now.

 

 

Look at the Step Event

The step event occurs every step of the game, usually 30 times every second.  In the step event you put in actions that need to happen continuously.  In this case we are using it to check the y position of objEnemy.  If y>460 it means the enemy has got to the bottom of the screen, so the game is over.

Double click the Step Event for objEnemy.

Look at the block markers.  If the expression is true (If y>460), then every action between the block markers will be carried out.


3


Show Me

Make the Clowns Look Scary as they Advance

As the clowns get closer to the bottom of the screen, we will change their appearance by changing the sprite.

Open the Step Event for objEnemy

  • From the control tab, add in an 'If expression is true' action
  • For the expression use y>240.  If y>240, the clown will be halfway down the screen.
  • From the main1 tab, put in a 'Change Sprite' action
  • Choose sprEnemy2

Test your game. 

Repeat with another action for when y>360; change the sprite to sprEnemy3.

Make the clowns move a little faster to make the game more exciting.


4


Show Me

Make Unlimited Clowns

After we shoot a clown we will create a new one at the top of the screen.

Double click the objEnemy.  Double click the Collision with objBullet event.

From the Main1 tab, choose Create an Instance

Choose objEnemy, and put x and -30 for coordinates.  (This will create a new enemy at the same position across the screen, but at the top.

 

Your finished game should now look something like this:

There are lots of things that can still be improved to make the game better.  Explore and play with different things in the game to try to make it better.  It doesn't matter if you mess it up, you can just download it again and have another go. 

Back to the Trail