Dungeon Key
Find the key, dodge the ghosts and escape the dungeon. Dungeon Key shows top-down movement, counters, and a door that only opens when you have the key.

What it shows
Shows: Top-down movement, counters, doors. The level’s Gravity pulls is Off, so the hero walks in four directions like a maze game, not a platform game.
How to play
The arrow keys walk. Pick up the four gems and the key. Ghosts chase you when you come near. Touch one and you go back to the start and lose a life. Walk into the door with the key and you escape. Without it, the door stays shut.
The things in it
| Hero | Hero (top-down) from the library. Arrow keys (8 directions), 4 ways, Speed 40. |
|---|---|
| Wall | The Dungeon Floor tile, renamed. Solid, so nothing walks through it. |
| Gem, Key | Stays still. Four gems and one key. |
| Door | Stays still. It has two animations: stopped (shut) and open. |
| Ghost | Two. Chases another object: Hero, Speed 12, Only when closer than 170 pixels. |
| Gems, Keys | Two Counters, with Label in front “Gems: ” and “Keys: ”. |
| Lives, You Escaped, Locked | The two Texts start hidden. |
The rules, one by one

Picking things up adds to a counter. Counters are numbers you can test later. See Counter.
With no key, the door is a wall. “Is overlapping” is checked every moment, not only once, so the hero is pushed back 6 pixels every time it tries. The message appears too.
With a key, the door swaps to its open picture and the game is won. Everyone stops.
Three changes to try
- Two keys. In the Level tab, Alt-drag the key to make a second one somewhere far away. In the Events tab change the two door conditions to Keys < 2 and Keys ≥ 2.
- Ghosts that never give up. Click a ghost and change Only when closer than from 170 to 0.
- A gem bonus. Add a rule: Gems = 4 and ⚙ Special → Only the first time → Add 1 to the lives. Without “Only the first time” it would give you a life every moment.