Skip to content

Your first game in 15 minutes ​

Let's make a mini adventure: the player is in a garden and needs a key hidden in a flowerpot to open a door and get into the house.

1. Create the project ​

  1. Home → New game.
  2. Your adventure: title The garden key. Languages: English (and, if you want, Spanish).
  3. Type of game: Modern adventure (two buttons: left-click uses, right-click looks).
  4. Resolution: HD 1280×720. Leave Interface and Plugins as they are.
  5. Protagonist: give them a name. First scene: Garden. If you have a background image, pick it here.
  6. Create game.

The wizard already leaves the scene ready to walk on: floor (the green area), two scale lines and the Start entrance. You don't need to draw them. Press Play (Ctrl+Enter) and you'll see the protagonist walk.

2. The background ​

If you didn't set a background in the wizard:

  1. In the Scene elements panel (on the left), press the + on the Drawing row and choose Behind everything.
  2. With the new layer selected, in Properties → Image pick your Image or video, or leave just a Fill color to prototype.

3. The door and the flowerpot ​

  1. Press P (hotspot) and click each corner of the door. Close it with Enter (or a double click). Esc cancels.
  2. In Properties:
    • Visible name: Door. Description on Look: “Locked.”
    • When interacting, the protagonist…: press Set and click in front of the door. Facing: up.
  3. Another hotspot for the Flowerpot. Description: “A flowerpot with a wilted geranium.”

With just the description, Look already works: no script needed.

Garden scene with walkable area, start entrance, and door and flowerpot hotspots

4. The house ​

Scenes → + → Wizard: scene → name House → finish the wizard. The new scene comes with its own Start entrance.

5. The key ​

Inventory → Wizard: complete item:

  1. What it is: name Key; on looking at it: “Small and rusty.” If you have an icon, upload it.
  2. Where you get it: Given by a script (the flowerpot will give it to us).
  3. What it is for: It is used with something → Door. What the protagonist says: “Open!” Check Used up when used.

The wizard creates the item and the script Use Key with Door.

6. The logic ​

The door leads to the house. In Logic, open Use Key with Door, press Add step, search for Change scene and pick the scene House and the entrance Start. It ends up like this:

text
On using Key with Door:
    The player says: “Open!”.
    Remove Key from the inventory.
    Go to the scene House at the entrance Start with fade to black.

The flowerpot gives the key. In Scenes → Garden, select the Flowerpot and, at the bottom of Properties, Scripts → + Use. Click the name of the script that appears to open it, and build this with Add step:

text
On using Flowerpot:
    If key_found equals true:
        The player says: “There's only soil left.”.
    Otherwise:
        The player says: “A key under the flowerpot!”.
        Add Key to the inventory.
        Set key_found to true.

The variable is created on the fly

Add the Compare variable block, click its variable slot, type key_found and choose Create the variable. It starts as yes/no with initial value false. Items work the same way: in an inventory block you can type a new name and create it right there.

Script logic blocks for picking up the key under the flowerpot

7. Test ​

Ctrl+Enter. Look at the flowerpot with a right-click, use it with a left-click, select the key in the inventory and use it with the door.

8. Review ​

  • Puzzle map: you'll see Use Flowerpot → Key → Use Key with Door → Reach House.
  • Diagnostics: there should be no errors or script warnings. It is normal for it to suggest sprites for the protagonist and translations if you added another language.

Puzzle map showing the automatically generated dependency graph for the tutorial

Congratulations! You now have the skeleton of any graphic adventure: get → use → unlock.

Stuck?

F1 opens the guide for the section you are in, the compass in the top bar starts the editor tour, and Tutorials, on the home screen, has small finished projects to look inside.