Gameplay
Components of the Gameplay module.
- Checkpoint 2D component Sets the respawn point of a node with Respawn that enters the area.
- Health component Hit points of a node. Hitboxes, kill zones and scripts damage it; it dies once at zero until revived.
- Hitbox 2D component Damages hurtboxes inside its area, once per target per activation, on every entry or periodically.
- Hurtbox 2D component Area where hitboxes damage a Health: on this node or on its nearest parent with Health.
- Kill Zone 2D component Kills a Health that enters the area, or respawns a node with Respawn and no Health.
- Lifetime component Removes the node after some seconds: back to its pool or destroyed.
- Motion 2D component Moves a kinematic Body2D by casting its colliders: walking, jumping, slopes, steps and moving platforms, or free top-down movement. Call Move and Jump from a script; the controller acts on the next fixed step.
- Pickup 2D component Fires Collected when a node enters the area; with Once the pickup then disappears.
- Respawn component Brings the node back to its respawn point after death or Trigger. The first point is where the node starts.
- State Machine component Named states with Enter, Exit, Fixed and Update hooks found by name on the node's scripts: EnterRun(), ExitRun(), FixedRun(dt), UpdateRun(dt). Scripts change the state with Go.