How to make a game like Undertale
The interesting part of this kind of RPG is not the combat. It is that every encounter is a tiny puzzle about a character, and the game remembers how you solved it.

Key takeaways
- Make every encounter solvable without fighting: each enemy has a mood and a small set of actions that calm it.
- Replace the passive enemy turn with a short dodge phase. It keeps fights active even when the player never attacks.
- Track choices in a few flags and let characters react to them. Its characters, world, writing, art and music belong to its owner.
Undertale-style games are small turn-based RPGs where any fight can be won without hurting anyone. On your turn you can attack, but you can also talk, joke, compliment or do something odd to change the enemy's mood; once it is calm enough, you let it go. On the enemy's turn you do not pick from a menu: you steer a small token inside a box and dodge its attacks for a few seconds. Add a world whose characters remember what you did, and you have the shape of the genre.
Undertale, its characters, its world, its writing, its art and its music all belong to its creator. What you can learn from is the structure: mercy as a mechanic, dodge-phase combat and remembered choices. Your game needs its own cast, its own setting, its own sense of humor and its own rules.
Why mercy-driven RPGs land
- Fights become conversations. Each enemy is a character with a problem, and the player has to read it. That is more memorable than a health bar.
- Your choices have weight. Hurting someone is a decision, not a default, and the game notices.
- Active turns. The dodge phase means even a pacifist run demands skill and attention.
- Small scope, big feeling. A few areas, a dozen enemy types and sharp writing can carry a whole game. It suits a solo creator.
The encounter model
Give each enemy a small data record instead of hard-coding fights. That keeps every encounter consistent and lets you add new ones quickly:
- `hp` and `attack` for the fighting path.
- `mood` from 0 to 100, starting low. At 100 the enemy can be released.
- `actions`: three or four non-violent options, each with a mood change (+30, +10, −20) and a line of reaction text. One action is the right answer, one is neutral, one backfires.
- `patterns`: the list of dodge-phase attacks it can use, which can get gentler as mood rises.
- `flagsOnSpare` and `flagsOnDefeat`: what the world remembers.
The puzzle is figuring out the right action from hints: the enemy's description, its dialogue, how it reacts. A nervous guard calms down if you stay still; a show-off wants applause; a lonely blob wants you to sit with it. Write the hint into the flavor text so attentive players feel smart. The turn-based combat system guide covers turn order and state machines underneath this.
The dodge phase
The enemy turn is a tiny action game in a box roughly a third of the screen wide. The player moves a small token with the stick or arrow keys (or by dragging on a phone) and avoids projectiles for 4 to 8 seconds. Each hit costs a few points of health.
- Token speed: cross the box in about 0.8 seconds. Slower feels sluggish, faster makes patterns trivial.
- Hit box: smaller than the token's art, a few pixels across. Grazes should feel lucky, not unfair.
- Brief invincibility (about 1 second, flashing) after each hit so one mistake never costs triple damage.
- Pattern vocabulary: falling items, sweeping lines with a gap, things that home slowly, a box that shrinks. Each enemy owns two or three, so its patterns express its personality.
- Telegraph everything. A faint warning line or shadow 0.3 to 0.5 seconds before a projectile appears.
Store each pattern as data (spawn positions, timings, speeds) rather than code, so you can tune it like a level. The bullet patterns article has building blocks you can reuse.
A world that remembers
The emotional payoff comes from consequences. You do not need a branching story tree; you need a handful of flags and characters who read them:
- 01Per-character flags: `guard_spared`, `blob_defeated`. Shopkeepers and townsfolk mention them later.
- 02A running tally: how many encounters ended in mercy versus defeat. Area music, NPC dialogue and the ending read it.
- 03Two or three endings decided by the tally plus a couple of key flags.
- 04Save-aware lines for the brave: a character who notices you reloaded after a bad choice. Use sparingly; it lands once.
Keep dialogue in data files keyed by character and condition so the writing stays editable. The dialogue system guide shows a structure for conditional lines, and saving game progress covers how to persist flags.
Scope it like a short story
A strong first version is about an hour long: three areas, eight to twelve regular enemies, one boss per area, two endings. Top-down exploration with simple tile maps, a few NPCs per area and one save point each. That is enough room for a real arc and small enough to finish. Stats, levels and a large map can come later, once the encounters are good.
Three twists that make it yours
- 01Mercy through music. The enemy turn is a rhythm phase: hit notes in time to calm it, miss and the projectiles get faster. Each enemy has its own short theme.
- 02Mercy that costs something. Calming an enemy spends a resource (your snacks, your time before nightfall). Fighting is cheaper, and the choice gets harder.
- 03Enemies who join you. Spared enemies follow you and help in later dodge phases (one blocks a lane, one slows time), so kindness becomes a strategy as well as a moral choice.
A brief to paste into Startbase
A small top-down RPG for desktop and phones with a hand-drawn ink look and a muted autumn palette. The hero is a night-shift mail carrier lost in a forest town run by moths, lamps and talking mushrooms. Encounters are turn-based. On the player's turn they choose Hit, Talk (three context options per enemy) or Pocket (items). Each enemy has a calm meter from 0 to 100; the right Talk option raises it by 30 or more, a wrong one lowers it. At 100 the player can choose Wave Off to end the fight peacefully. On the enemy's turn the player steers a small envelope inside a box for 5 seconds to dodge its attacks, each enemy with two or three attack patterns telegraphed by faint warning lines. One second of invincibility after a hit. The game tracks which enemies were calmed or defeated; NPCs mention them, the town's lamps dim as defeats add up, and there are two endings. Build 3 areas, 9 regular enemies and 3 bosses, dialogue in data files, save points that store flags on the device. Keyboard and touch controls.
Publish it with one click when it is ready and share it on the Community or in the Arcade.
Common mistakes
- Guess-the-word encounters. If the right action has no hint, players brute-force menus. Always leave a clue.
- Dodge phases that drag. Keep them short; vary length by enemy.
- Consequences nobody sees. If a flag never changes a line of dialogue, it does not exist to the player.
- Imitating the original's jokes and characters. It reads as fan fiction. Your humor is the point.
Frequently asked questions
How do you make a pacifist option in an RPG?
Give each enemy a mood or calm meter and a few non-violent actions that raise or lower it. When the meter fills, let the player end the fight peacefully, and record that choice in a flag the world can react to.
What is a dodge-phase combat system?
Instead of the enemy simply attacking, the player steers a small token inside a box for a few seconds to avoid projectiles. It turns the enemy turn into a short action segment.
Can I use Undertale characters in my game?
No. The characters, world, music and art belong to their creator. Build your own cast and setting; the mercy and dodge mechanics are design ideas you can learn from.
How long should a first RPG be?
About an hour: a few areas, around ten enemy types, a boss per area and two endings. Finishing a short game teaches more than abandoning a long one.

