We are going to make a maze game where the player has to collect items
before they can get to the next level. There will be various dangers and
puzzles to solve. There will be a secret door. The player will not be able to see the door to the next
level, until they have collected all the items.
 |
| Each of the steps has a Show Me
video. Some of the videos are quite long, but you can
watch part of it, then pause it to complete the steps in Klik &
Play. The videos have play controls at the bottom.
|
|
 |
Step 1 - Set up the background
 |
First set up a grid to line up your wall blocks.
Start by going to the level editor. From the menus choose Edit
>Preferences.
Choose Snap to, and Show Grid.
Go to Setup and make your grid 32 x 32 pixels. |
Next we will make our door to the next level and the walls
 |
Go back to the level editor. Click on Tools >
Create new backdrop object. Make sure your canvas is 32 x 32
pixels. Fill the whole picture with one colour like this.
Place your block on one corner of your screen.
Right click on your backdrop square and choose Obstacle > Yes.
This will stop your character going through the walls.

We want the door to look the same, but to be an active object, not a
backdrop object.
Right click on your Wall block again and choose New Level Object.
Choose Active. Place it somewhere on the right edge of your play
area (not on a corner).
This will be your door to the next level. Right click on it and choose Edit
Name and Icon. Name it Door.
|
 |
Click on the level objects icon in the top left corner
 Now you can see your door and
backdrop block. 
Now by choosing your backdrop block and right clicking on the play
area you can make your walls easily.
Make sure that you have walls all
around the outer edge.
Your grid should look something like this. Put in an area like
I have in the lower right of the screen. You will see why later.
|
|
 |
Step 2 - Create your character

 |
We now want to turn off the grid to put the rest of the objects between the walls. On the menus, go to Edit >Preferences.
Lock the Backdrop so it can't move accidentally.
Turn off Snap to Grid
|



|
Now we will draw our character. Go to Tools > Create new active
object.
Double click to open the picture editor. Make your canvas 30 x
30 pixels.
Turn on Show Hot Spot
Point. This is where the centre of the character is located.
Move it so that it is at 15, 15. Now turn off show hot spot.
Draw a simple character.
Place your character in the centre of your maze. Right click to
give it movement.
Choose 8 direction movement, but turn off all but up, down, left
and right.
Save your Game.
|
|
 |
Step 3 - Set up events
Go to the Event Editor.
Click add a new condition 
We will set up an event for when the person collides with
the door.
Choose your character
and choose Collisions > Active Object
Choose the Door. Double click in the column under your
character and choose New Action > Movement >Stop

We are now ready to go to the Step Through Editor
to try our game so
far.
| Look for the following event |
|
 |
Choose Stop |
| |
|
|
 |
Step 4 - Add in something to collect before the door will
open
Now place about 12 strawberries that your character has to
collect before it can get to the next level.

Goto the Step through editor again and look for the following
events:
 |
Destroy Strawberry Play a sound
|
 |
Ignore |
Go to the Event Editor.

Add in a new event. 
Double click the strawberry and choose Pick or Count >
Have all strawberry been destroyed
Now, in the event, add
in destroy the door.
Go back to the Step Through Editor. Watch for these events:
 |
Ignore |
 |
Go to the next level. |
|
 |
Step 5 - Add in some danger
Our game is going well, but it's not very exciting yet. We need to add
in some danger.
 |
At the bottom of my maze I have an area like this. I am going
to add in a dangerous bee that flies back and forth. Select Path
movement for the bee.
|
 |
Make the line go like this. |
 |
Choose Loop and reverse at end.
Speed 20 seems about right.
(Hint: You need to click on New Line. Then click on top of your
bee. Set the speed to 20. Then choose new line again, choose Loop
and reverse at end and then draw the line)
So now my bee moves back and forth, making it harder to get the
strawberry. |
Go to the Event Editor and add a new condition.
Choose your character
and choose Collisions > Active Object
Choose the bee.
Double click in the score column, choose to lose a life.
Double click in the character column, and choose position. Set position
back to the start position.
|
|
|
Step 6 - Tidy Up
Add in a lives object. Add in any other danger or objects to make your level interesting. You
might add in a score object and add to the score for collecting strawberries.
Then you could have a bonus points object that appears after a certain time and
then disappear at a certain time. Or maybe an object might appear that
blocks off a certain path. It's all up to your creativity and imagination!
|
|
|
Time to Make the Next Level
We will make the next level in a similar way.
Go to the Storyboard Editor and add in a new level. (Click
here if you need help on adding a level)
 |
| You will notice that when you go to the
next level, you cannot see the objects that you created from the
previous level.
Click on the level objects icon
At the right hand end, you will see some red arrows.
Click on the up
arrow, then you can see and use the objects from your previous
level.
|
|
Each level of a maze game needs to become more challenging. There
are many ways to add challenges, but here are a few suggestions:
- Have false doors that when you go through them, you reappear on the
other side of the maze. Only one door actually works.
- Have moving doors. Make the door disappear after a certain time
and reappear elsewhere.
- Have things to collect that disappear after a certain time.
- Have objects that you must collect in a certain order to open the door.
If you collect them in the wrong order, the door may disappear, or monsters
might appear.
- Have an object that opens the door, but only a certain time to get to
the door before it closes.
- Have a monster that you must trap in order to get to the door.
- Have monsters appear randomly in the game every 10 seconds or so. See
the How to.. page
|