Checkpoint and Respawn Mechanic Idea
- Janice
- Mar 14, 2024
- 1 min read
Mechanic Diagram:

Flow Diagrams:

When a player takes damage it checks if does player triggers a checkpoint.
If yes respond to a new location, no start from the beginning.
Only respawn to a new location if the player still contains health.
(Diagram tool : draw.io)
Class Diagrams:

The checkpoint trigger script will be inside the health script
Check from OnTriggerEnter2D using the tag "checkpoint"
Respawn will run under coroutine
Disable player control and hidden character object (Diagram tool : Mermaid Diagramming)
Comments