CMCharacter Modules 0.1.0

Respawn

Kind: Modifier · Add Component: Character Modules > Gameplay > Respawn

Brings the character back at the last checkpoint. Checkpoints set how much a mistake costs.

Brings a dead character back at the last checkpoint. Checkpoints decide how much a mistake costs.

Inspector
▼Respawn⋮
CharacterCharacter (Character Motor)
Spawn PointNone
Delay1
The Respawn component in the Inspector, with its defaults.
Origin. Checkpoints from arcade games on; Dark Souls (2011) made the bonfire a resting place.

How it works

Changes no state: it only reports or reacts.

Puts a character that died back where it started, or at spawnPoint, with full health, after delay seconds of simulation.

Combine it

  • Needs: Health. The Inspector warns while one is missing.
  • Used by the presets: Arena Shooter, Competitive Shooter, Surf, Retro Platformer, Modern Platformer, Traversal Adventure, Action RPG.

Properties

PropertyDescriptionRangeDefault
CharacterThe character this module belongs to. Drag its Character Motor here.None
Spawn PointWhere to come back. Empty: where the character was when it started.None
DelaySeconds between dying and coming back.0 or more1

Additional resources