Download the Toytrail 2A game for this section:
At this trailpoint we will fix up Bertrand's movement so that he can
move downwards and make him move a bit faster. We will also add in
some background music.
|

1

Show Me |
Fix the Movement
Double click objBear to
open its properties
Click Add Event and add the Keyboard event

Choose Down
Drag the Move Action to the Actions panel

Choose Downward movement with a speed of 4
Now Bertrand should be able to move in all directions.
|
|
|

2

Show Me |
Power Up Bertrand
Bertrand moves fairly slowly at the moment.
We can change his speed by altering the speed in each of the Up, Down, Left
and RIght Keyboard Events

|
|
|

3

Show Me |
Add some Background Music
Have a look in the Objects folder. There is an object named
objController.

A Controller object is not visible in your game, so it doesn't need a sprite.
It is used to attach actions to.
Double click objController to look at its properties.
When it is created, the Action is play sndBackground.
Open your room, and add the objController in.
Test your game. You should now have background music.
You can change your background music by double clicking the sndBackground in
Sounds, and loading a different midi file.
|
|
