Checkpoints and Respawning
Checkpoints decide how much a death costs. Place them before the hard part, save the right things and respawn in under a second.

Key takeaways
- Put checkpoints right before a difficult section, so each death replays the challenge, not the walk to it. Aim for one every 30 to 90 seconds of play.
- Decide what a checkpoint saves (position, collectibles, enemy state, timers) as a written rule, because most checkpoint bugs are state that was half restored.
- Respawn fast: a short fade of 0.2 to 0.4 seconds, the player back in control in under a second, and a moment of invincibility on arrival.
Checkpoints are saved positions inside a level: when the player dies, they come back at the last checkpoint they touched instead of the start. Respawning is everything that happens between the death and the player having control again. Together they set the cost of failure. The core rules are short: place a checkpoint right before each hard section, decide exactly what it remembers, and get the player back into play in under a second. The details are where games go wrong.
Where checkpoints go
The goal of a checkpoint is to make each death replay the part the player failed, not the part they already mastered. That gives a simple placement rule: just before the hard part, never just after it. A checkpoint after a tricky jump rewards the player for finishing it; one before the jump lets them retry it twenty times without boredom.
- Spacing: roughly every 30 to 90 seconds of expected play time, measured for a first-time player, not the designer. Hard sections pull checkpoints closer; easy corridors push them apart.
- Never more than one hard section between checkpoints. If a player must clear a spike corridor and then a moving-platform gap, put one between them.
- Before bosses and arenas, with any long walk to the door cut out. Walking 40 seconds back to a boss after each death is a classic reason players quit.
- On safe, flat ground, with no enemies or hazards that can reach the spawn point.
- Optional routes get their own, or at least a checkpoint at the place they rejoin the main path.
For genre context, our platformer guide covers how checkpoints fit level beats, and the obstacle course guide shows the other extreme, where a checkpoint follows every single stage.
Activating a checkpoint
Most games activate checkpoints on touch: a trigger area the player passes through, wide enough to never be missed (taller than a full jump so jumping over it still counts). Activation should be impossible to miss: a flag rises or lights up, a short chime plays, maybe a small burst of particles. Some games also heal the player or refill ammo on activation, which turns checkpoints into small rest stops.
- Only forward. Touching an earlier checkpoint again (after backtracking) should not move the respawn point backward, unless your game lets players choose. Give each checkpoint an order number and only accept higher ones.
- Never mid-air or mid-death. If the player touches a checkpoint and a hazard on the same frame, resolve the death first. Otherwise they respawn at a checkpoint they never really reached, sometimes in a loop.
- Store a spawn point, not the touch point. Each checkpoint has a marked respawn position on solid ground. Saving where the player happened to be when touching it can respawn them in the air or a wall.
What a checkpoint remembers
This is the design decision most first games skip, and the source of most checkpoint bugs. Write the rule down for each kind of state:
- Player position: the checkpoint's spawn point. Always.
- Health and resources: usually reset to full, or to what the player had at the checkpoint. Respawning at 1 health in front of a hard section is a trap.
- Collectibles picked up since the checkpoint: two common choices. Keep them (generous: progress is never lost) or roll them back (fair for challenges: coins in a hard section only count if you get through it). Rolling back requires remembering which ones were collected after the checkpoint.
- Enemies: reset the ones between the checkpoint and the death point to their starting positions; keep the ones before the checkpoint dead. Resetting all enemies forces players to clear rooms again.
- Moving platforms and timed hazards: reset to a known phase, so the first jump after respawn is always the same. A platform in a random phase on each respawn makes retries inconsistent.
- Doors, switches and keys: keep anything the player opened before the checkpoint. Re-locking a door the player cannot reopen is a softlock.
- Timers: a speedrun timer keeps running; a level countdown usually resets to a set value at the checkpoint.
A clean way to implement this: every resettable object has a `reset()` that puts it back to its state at the time of the active checkpoint, and the checkpoint takes a snapshot of the few things that change (collected IDs, opened doors, defeated enemies). Respawning calls reset on everything in the current section.
Respawn timing
Speed is the single biggest factor in how death feels. Players will retry a hard section dozens of times if each retry is instant, and quit after five if each one takes four seconds.
- 01Death beat: 0.3 to 0.6 seconds. A hit flash, a short freeze, the character pops or falls. Long enough to see what killed you.
- 02Transition: 0.2 to 0.4 seconds. A quick fade or a wipe. Move the camera instantly during the dark frame rather than panning across the level.
- 03Arrival: control within 1 second of death in total for precision games, up to 2 to 3 seconds in slower games.
- 04Arrival invincibility: 1 to 2 seconds with the usual blink, so a patrolling enemy or a projectile already in flight does not kill the player before they can react.
Bugs checkpoints usually cause
- Death loops. The spawn point overlaps a hazard, or an enemy camps on it. Check the spawn area is clear on arrival and keep spawn points away from enemy patrol routes.
- Respawning with momentum. The player keeps the velocity they died with and slides off the ledge. Zero velocity, buffered inputs and active power-ups on respawn.
- Camera snaps late. The camera eases from the death spot to the checkpoint, showing half the level. Snap it during the fade.
- Double deaths. Two hazards in one frame trigger two respawns, sometimes skipping a checkpoint. Guard the death handler so it runs once.
- Collectible counts drift. Rolling back collectibles without rolling back the counter (or the reverse) gives 101 of 100 coins. Derive counts from the list of collected IDs.
- Lost on reload. If a player closes the tab, does the checkpoint survive? For long levels, it should. Our guide to saving progress covers storing it locally.
How checkpoints combine with other systems
Lives systems pair a checkpoint with a limited number of retries; when lives run out, the level restarts. On modern web games, lives often add frustration without adding tension, so consider unlimited retries plus a death counter. Moving platforms need their phase reset on respawn. Collectibles need the keep or roll back decision above. Bosses reset health fully on death unless the boss has phases you want to keep, which some games allow as an assist. Multiplayer games usually respawn each player at their team's latest checkpoint, or let a teammate revive them; a player who falls behind should be teleported to the group after a few seconds.
Testing checkpoints quickly
In a Startbase game you can open the World Editor, drag a checkpoint flag to a new spot, save, and press P to play from where the camera is, so testing the section after a checkpoint takes seconds. Then die on purpose three times in a row in each hard section, on a phone, and time how long you are out of control. Our level design basics have more on pacing sections between checkpoints.
A brief to paste
Add checkpoints to my platformer levels. Each checkpoint is a lantern post with a wide trigger taller than a full jump; touching it lights the lantern, plays a chime and refills health. Checkpoints have an order and only a later one replaces the current one. Each has its own spawn point on flat ground. On death: 0.4 s death animation, 0.3 s fade, camera snaps during the fade, player back in control at the spawn point with zero velocity and 1.5 s of blinking invincibility. Respawn resets enemies and moving platforms in the current section to their starting state, keeps doors opened earlier, and rolls back coins collected since the checkpoint. A death handler guard prevents double deaths. Save the latest checkpoint per level locally so a reload resumes there. Place one before each hard section, about every 45 s of play.
Frequently asked questions
How far apart should checkpoints be?
A common target is every 30 to 90 seconds of play for a first-time player, with no more than one hard section between two checkpoints. Harder games space them closer, not further.
Should collectibles be lost when the player dies?
It is a design choice. Keeping them is friendlier; rolling back the ones collected since the last checkpoint makes collecting in hard sections a real challenge. Pick one rule and apply it everywhere.
Should enemies respawn when the player respawns?
Usually only the ones in the section the player died in. Enemies the player cleared before the checkpoint should stay defeated, or every death forces the same fights again.
How long should respawning take?
In action and platform games, aim for the player to have control again within about a second of dying, including a short death beat and a quick fade.

