Make a 3D maze, start finish

Build a whole 3D maze from nothing: paint the map, add doors, a player, crystals and a key, then write the rules that make it a game.

NutHouse
The map editor with a maze painted in Grey Stone, doors and objects placed
Where you are heading: a maze with doors, crystals, a key and an exit.

What you are making

A maze you walk through in first person. Crystals to collect, a key that opens a locked door, and an exit that only works when every crystal is gone. It is a smaller Crystal Maze 3D, and you make it in about twenty minutes.

Part 1: the map

  1. Choose Advanced on the toolbar.
  2. Click New (⌘N) to start an empty game.
  3. In the sidebar click + 3D level. NutHouse makes a 16×16 room ringed with Grey Stone, with a Player in the corner.
  4. Click Grey Stone in the Blocks palette and choose ✏️ Paint blocks.
  5. Paint walls inside the room to make corridors. Leave the paths two squares wide so there is room to turn. Right-click rubs out.
  6. Leave two small rooms with a single way in each. One is the key room, one is the exit room.

Part 2: doors

  1. Click + Add a block…. The Library opens on 3D walls. Click Wooden Door. NutHouse says “Wooden Door is ready to paint on 3D maps”.
  2. Click + Add a block… again and pick Locked Door.
  3. Paint a Wooden Door across a corridor. Doors go in a gap in a wall, with wall on both sides.
  4. Paint the Locked Door in the only gap into the exit room. Leave the key room open.

Part 3: the player

NutHouse already gave you a Player with First-person (3D levels) movement. If you deleted it, click + Add an object…, pick Hero from the Library, then in How it moves choose First-person (3D levels).

  1. Choose 🧍 Place and move objects.
  2. Drag the blue arrow to the start square and press R until it faces down the first corridor.
  3. Press ▶ Play level (⌘R) and walk the maze. Press Space at the wooden door. Press Esc to stop.

Part 4: crystals, a key and an exit

  1. Click + Add an object… and pick Crystal. With 🧍, click five or six squares around the maze.
  2. Click + Add an object… and pick Key. Place one copy in the key room.
  3. Click + Add an object… and pick Flag. Place it behind the locked door. Rename it Exit in the Properties panel.
  4. Click + Add an object…, open the New tab and pick Counter. Name it Keys and set Label in front to Keys: . Drag it to the top of the screen.
  5. Add a Score the same way.

Part 5: the rules

Open the Events tab and click + New event for each of these.

Picking up a crystal. Click Player, choose Collides with another object, pick Crystal.

WhenPlayer collides with Crystal
DoDestroy CrystalAdd 10 to score

Picking up the key. The same again, but with the Key, and the Keys counter goes up by one.

WhenPlayer collides with Key
DoAdd 1 to KeysDestroy Key

Opening the locked door. In ⌨ Keyboard & mouse choose Upon pressing a key and press Space. Click + and…, click Keys and choose Compare the counter: > more than 0. In the Player's cell, open the 3D sub-menu and add Open the door in front.

WhenUpon pressing Space barKeys is more than 0
DoOpen the door in front of Player

The exit. Player collides with Exit, plus Compare the number of these objects on Crystal: = equal to 0.

WhenPlayer collides with ExitNumber of Crystal objects is 0
DoGo to the next level

With one level, Next level ends the game and shows The End. Add a second level later and it carries on instead.

Part 6: play it

  1. Press ▶▶ Play game (⇧⌘R).
  2. Collect the crystals, find the key, stand in front of the locked door and press Space.
  3. Walk into the flag. If a crystal is left, nothing happens. Go and find it.
  4. Press Save (⌘S) and give your maze a name.

Still stuck?

Try the Chocobreak tutorial, open a sample game and read its rules, or look at the questions people ask.