Voxel Game Maker

Docs Tutorials

A coin hunt

Turn your garden into a game: hide pickups, set a goal and win.

In the editor: Welcome ▸ Tutorials ▸ 1.3 ▸ ▶ Start goes on in your My Garden project with this lesson's checklist.

Build · about 25 minutes · Basic mode

What you'll make: a game where you find every hidden pickup in your garden to win.

Before you start: do Your first level. Keep that project open.

#1. Make something to collect

  1. Click the Coin model in the Models panel and place one somewhere in the level with Place (2).
  2. Click it with Select (1).
  3. In Properties, under What is it?, pick Pickup and set its Type to Coin. (A coin also offers a one-click Make it a coin button there.)

Play it now: walk into it. It's collected.

#2. Hide more of them

Copy the pickup with Ctrl+D (the copy lands one tile over) and drag the copies around the garden with Select (1): behind trees, on the hill, near the fence. Hide 5 coins in all.

#3. Set a goal

A goal is how the player wins.

Choose Edit ▸ Game Settings… ▸ Goal (Ctrl+Shift+,, then the Goal page in the Game group) and set Goal to Collect every Coin.

Play it now: the goal shows on screen with your progress. Collect them all and the win screen opens.

#4. Test it like a player

Press ▶ Play once more and try to find every pickup without looking at the editor. If one is too hard to find, move it. If it's too easy, hide it better.

#Try it yourself

  • Put one pickup somewhere you can only reach by jumping.
  • Use a level goal instead: switch to Advanced with Basic | Advanced on the toolbar, draw a zone around the start with the Zone tool (V), then click your level's Goal in the Explorer and use + Add objective for Collect items followed by Reach a zone, so the player must get back to the start after collecting.

#Learn more

#Next

Take apart: the Sample Village.