Download the Toytrail 3A game for this section:
So far Bertrand can move around, and everything looks good, but the game
is still very boring. There is nothing to do in it. So we
have added in an enemy, Gertrude the ghost, for him to shoot at.
Press the Spacebar to shoot.
|

1

Show Me |
Fix Gertrude Ghost's Movement
The first thing you will notice when you try to play the game is that
Gertrude just moves off in a random direction and keeps on going through the
walls.
Open objEnemy properties by double clicking on it.

Add a Collision Event with objWall

Choose the Bounce Action 
Test your game.
|
|
|

2

Show Me |
Add in Scoring
We want to get 1 point every time Bertrand hits Gertrude with the bullet.
Double click objBullet to open its properties
Add a Collision Event with objEnemy

On the Score tab, choose Set the Score action

Make the new score 1, but make sure that you tick Relative.
Try your game.
 |
| After you have tested your game, go
back to the objBullet collision with objEnemy event and untick
Relative.
What difference does it make? |
|
|
|
|

3

Show Me |
End the Game When Gertrude Collides with Bertrand
We want the game to end if Gertrude collides with Bertrand. Double click
objBear to open its properties Add a Collision Event with objEnemy
 Choose Go to Next Room Action
from the Main1 tab Test your game.
|
|
|

4

Show Me |
Game Information
It is important to give the player some information about how to play the
game.
Double click Game Information to open a window where you can
type instructions about how to play your game. Test your game.
|
|
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.
 |
| When you have made a change to your game
and tested it and found it works, then save your game.
If you make a change that doesn't work, then close your game
without saving it. Open the file again to get your
game before the last change. |
|
