Sub topic 8
Retry, Checkpoints, and Recovery Cost
This chapter assumes you understand the core gameplay loop, basic conditionals and functions, and common game genres. It focuses on how a game handles a setback after the player fails. A death, missed objective, or damaged resource does not always need to end the run. It can become a recoverable fail state.
From failure to another attempt
A recovery system answers three questions:
- What does the player lose?
- Where does the player resume?
- What remains completed?
A checkpoint is a saved recovery location. After a failure, the game moves the player back to that location instead of restarting the entire game. A retry is another attempt after failure. Recovery cost is the time, resources, progress, or attention required to try again.
These choices shape the meaning of failure. If death costs nothing, players may experiment freely, but danger can feel unimportant. If death removes too much progress, players may stop taking risks. A good cost makes failure matter without making the player repeat work that no longer teaches anything.
Choosing a checkpoint
A checkpoint should usually appear after a meaningful piece of progress, such as:
- Completing a difficult encounter.
- Solving a puzzle.
- Reaching a new area.
- Collecting an important permanent upgrade.
- Entering a dangerous sequence.
Avoid placing checkpoints only by distance or clock time. A checkpoint that comes immediately before a long unskippable scene creates repetition. A checkpoint that appears after every minor action can remove tension.
Use the player's expected effort as a guide. If a failed attempt takes ten minutes to repeat, the checkpoint should make that repetition shorter or more informative. If the intended challenge is a short reaction test, restarting the whole level may be reasonable.
What should persist?
Separate persistent progress from attempt-specific state.
Persistent progress survives the retry. It might include:
- Unlocked abilities.
- Opened shortcuts.
- Discovered map information.
- Quest progress.
- Permanent inventory items.
Attempt-specific state resets or changes. It might include:
- Temporary ammunition.
- Enemy positions.
- A temporary score multiplier.
- Health and status effects.
- Puzzle objects that are not permanently solved.
The boundary should be predictable. If players cannot tell what a checkpoint saves, they may interpret a reasonable reset as lost progress.
| Recovery model | Player loses | Suitable when |
|---|---|---|
| Instant retry | Almost nothing | Practice, arcade challenges, short encounters |
| Checkpoint restart | Recent position and temporary state | Action games and puzzle sequences |
| Resource penalty | Currency, equipment, or lives | Games where choices and preparation matter |
| Full run restart | Most temporary progress | Roguelikes, survival games, and high-stakes modes |
Recovery cost and player motivation
Recovery cost has several dimensions:
- Time cost: How long before the player acts again?
- Repetition cost: How much already-understood content must be replayed?
- Resource cost: What useful item or ability is removed?
- Emotional cost: Does the presentation communicate a fair consequence?
- Strategic cost: Does the failure change the player's future options?
Time and repetition costs are often the most frustrating because they do not require a new decision. Reduce them with quick reloads, skippable scenes, and shortcuts. Strategic costs can be more interesting because they encourage the player to change tactics.
A limited-life system can combine these ideas. A death is a fail state while lives remain. When the final life is spent, the game enters a lose state.
from enum import Enum, auto
class Outcome(Enum):
PLAYING = auto()
LOST = auto()
class Run:
def __init__(self, lives, checkpoint):
self.lives = lives
self.checkpoint = checkpoint
self.position = checkpoint
def on_player_death(self):
self.lives -= 1
if self.lives <= 0:
return Outcome.LOST
self.position = self.checkpoint
return Outcome.PLAYING
run = Run(lives=3, checkpoint="Bridge")
print(run.on_player_death()) # Outcome.PLAYING
print(run.position) # Bridge
print(run.lives) # 2The method makes the transition explicit. It reduces the life count, checks whether the run has ended, and otherwise restores the player at the checkpoint. The order matters. Restoring the position before checking the final life could briefly expose a playable state after the run should already be over.
Testing recovery systems
During playtests, record more than whether players eventually succeed. Ask:
- How long does a failed player wait before acting again?
- What does the player believe the checkpoint saved?
- Which repeated section feels useful, and which feels like punishment?
- After failing twice, does the player change strategy?
- Do players choose to quit because the recovery cost feels excessive?
Watch for players deliberately restarting to manipulate the checkpoint or resource system. This can reveal unclear rules or an optimal strategy that bypasses the intended challenge.
Exercise
A game makes the player replay a five-minute level section after every death, even though the difficult challenge is at the end. What recovery change should you test first, and why?
Show answer
Add a checkpoint shortly before the difficult challenge, while preserving permanent progress. This reduces repetition cost without removing the challenge itself.