β›½ Ignitor Docs ← getignitor.com
πŸ‡ΊπŸ‡Έ EN πŸ‡ͺπŸ‡Έ ES

Doors that open, close and block the way#

Almost every room has a door, and every door is built the same way: a picture of the door, a checkbox that makes it openable, and a thin cut in the floor that stops the player while it's closed. Once you've built one, the next takes about ten minutes. This guide walks through a plain door from art to playtest, then adds a lock and connects both sides of a doorway shared by two rooms.

You don't need an "open door" drawing, and you don't write any code.

The three pieces#

Piece Where What it does
The door sprite Animation Editor Two frames: the closed door, and the same door invisible
Openable Room Editor, hotspot card Remembers open or closed, wires Open and Close, shows the right frame
The doorway on the floor Room Editor, walkable areas and regions A thin hole that blocks the way while closed, and a warp beyond it

Step 1: Paint the doorway open#

What you get: a background that already shows the door open, and the closed door as its own image.

  1. Paint (or render) the room with the doorway open: the dark gap, or the next room peeking through. This is your background.
  2. Cut the closed door leaf out of a closed-door version of the same room, as a PNG with a transparent background.

If your background has the door painted closed, draw the hotspot around the door and use Copy on the hotspot card: the door becomes the hotspot's own sprite, pixel for pixel in place. Then paint the open doorway into the background image.

How you know it worked: with the sprite hidden you see an open doorway; with it shown, a closed door that lines up perfectly.

Step 2: A door in two frames#

What you get: an animation the door uses as its closed and open states.

  1. In the Animation Editor, create a new animation in the Hotspot/Object category (for example kitchen_door_states).
  2. Drop the closed door PNG in as frame 0. Leave its opacity at 1.
  3. Select it and press Duplicate. Select the new frame 1 and set its opacity to 0 in the inspector.
  4. Save.

Frame 0 is the door closed. Frame 1 is the door gone, which lets the open doorway in your background show through. That's the whole art cost of a door.

How you know it worked: scrubbing between the two frames, the door appears and disappears.

Step 3: Make it openable#

What you get: Open and Close work, and the game remembers the door's state.

  1. In the Room Editor, draw a hotspot over the door and give it a name and a Look line.
  2. On its Animation card, pick kitchen_door_states.
  3. Tick Openable (door) β†’ Is openable. Leave the frames at closed 0 and open 1. Tick Starts open only if the door should be open the first time the player arrives.

That's it: Open and Close are wired by themselves to SETHOTSPOTOPEN:open and SETHOTSPOTOPEN:closed. The state is kept when the player leaves and comes back, and in saved games. You can add more to those chains (a creak, a line, a flag) as long as the SETHOTSPOTOPEN stays in them.

The open door is still clickable. Clicking goes by the shape of the door image, not by how visible it is, so the invisible open door still answers Look and Close. That's what you want: the player can always shut it again.

Step 4: The doorway on the floor#

What you get: a closed door the player can't walk through, and an open one they walk straight through into the next room.

        warp region (to the next room)
   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
   β”‚  β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“  β”‚ ← thin hole across the doorway
   β”‚                     β”‚ ← the floor reaches into the doorway
β”€β”€β”€β”˜                     └───  room floor
            ● walk-to point (in front, outside the warp)
  1. Let the floor reach into the doorway. Shape the room's single walkable area so it goes a little way into the opening, under where the warp will be.
  2. Cut a thin hole across that notch, 4 to 6 px tall, a pixel wider than the notch on each side so nothing leaks past it. On a slanted side wall, make it a thin parallelogram that follows the slant.
  3. Draw the warp region just past the hole (no more than about 32 px away) and point it at an entrance region in the next room.
  4. Back on the door's Openable card, set Passage area to that hole. Closed, the hole blocks the way. Open, it switches off and the player walks into the warp.
  5. Put the door's walk-to point on the floor in front of the door, never inside the warp. Otherwise Look, Open and Close would carry the player out of the room before they act. The Openable card warns you, and so does Validate.
  6. Doors in a side wall need a walk-behind over the frame nearest the camera, with its baseline at the foot of the frame, so the player walking in passes behind it instead of over it.

Use a hole, not a second floor patch that appears when the door opens. One floor per room means one source of character scale and no seams between overlapping areas.

How you know it worked: in the game, walk at the closed door: the player stops at it. Open it and click the doorway: they walk through and arrive in the next room. Press D in the game to see the regions (red for warps, blue for entrances).

A door with a lock#

Under Openable, the Lock and Key card turns the door into one that needs a key:

  1. Tick Has a lock and Starts locked.
  2. Pick the key in Opens with.
  3. Choose How the key works: Use the key on the door (the player uses the item on it) or Automatic if carried (it unlocks by itself when they try to open it with the key in the inventory).
  4. Optional: Key is used up, Opens on unlock (the same click also opens it) and a Locked message (empty uses the system's "It's locked.").

While it's locked, nothing that would open the door gets through: not the Open verb, not a lever, not a cutscene step. You can also lock and unlock it from any chain with SETHOTSPOTLOCK:locked, unlocked or toggle. Locking doesn't close an open door; close it first if the story needs both.

One door, two rooms#

A doorway between the kitchen and the hall is two hotspots, one in each room. Each remembers its own state, so if the player opens it from the kitchen, the hall side still shows it closed unless you connect them. Two flags do it:

  1. On the kitchen door, add to Open: SETFLAG:kitchenHallDoorOpen and CLEARFLAG:kitchenHallDoorClosed. Add the opposite pair to Close.
  2. Do the same on the hall door, with the same two flags.
  3. In each room's entry reactions, on Every visit, add an + if-block: if flag kitchenHallDoorOpen β†’ SETHOTSPOTOPEN:<door>|open. Add a second one for kitchenHallDoorClosed β†’ SETHOTSPOTOPEN:<door>|closed.

Two flags instead of one means a door nobody has touched yet keeps whatever you set in Starts open on each side.

Variations#

  • A painted open door: make frame 1 a picture of the open leaf at opacity 1 instead of the invisible copy.
  • A door that swings: set Transition anim on the Openable card to a separate animation. It plays once when the door opens and in reverse when it closes, then the door rests on its open or closed frame. Without one, the door simply switches frames, which suits most doors.
  • A Look that changes: in a puzzle rule or an if-block, the condition isOpen with the door's id lets you say something different when it's open.
  • A lever that opens a gate: SETHOTSPOTOPEN:gate|open opens another openable in the same room. If the gate has a lock, the lock still has the last word.

When something's off#

What you see Usually
The door doesn't change when you open it The animation has only one frame, or the hotspot's Animation card is empty. The Openable card warns: it needs at least 2 frames.
Open works but the player still can't get through Passage area is empty, points at an area that no longer exists, or the floor doesn't reach into the doorway.
The player walks through the closed door The hole doesn't cover the whole notch: stretch it a pixel past each side.
Looking at the door takes the player to the next room The walk-to point is inside the warp. Move it onto the floor in front.
The player draws over the door frame A side-wall door without its walk-behind over the near frame.
The other side of the doorway shows the wrong state The two flags aren't set on both doors, or a room's entry reactions don't apply them.

Where to go next#