Godot mechanic revival

From thedivergentai/GD-Agentic-Skills · View interactive version

Godot mechanic revival is an AI agent skill from the GitHub repository thedivergentai/GD-Agentic-Skills. Expert blueprint for player mortality loops: progress-index checkpoints, soul graves, ghost/spirit layers, I-frame restitution, world-progress persistence, and death analytics. Use when implementing respawn, shrine checkpoints, corpse-run retrieval, or second-chance mechanics. Keywords revival, resp

How to use this skill

Skill file

Overview

Mortality beyond Game Over: progress-index checkpoints, soul graves, ghost/spirit collision layers, I-frame restitution, world-progress bitmasks, and death analytics (Sekiro / Hades / Souls-like).

Golden Path — Death → Fade → Restore → I-frame → World Persist

MANDATORY script order (read before improvising):

  1. revival_global_manager.gd — Autoload owns death → delay → respawn; resolve player via group Player.
  2. revival_death_timer.gd — 1–2s fade / death anim; never snap-respawn.
  3. revival_state_reset_guard.gd — zero velocity / clear locks before teleport.
  4. revival_health_restitution.gd — health restore + I-frames.
  5. revival_checkpoint_persistence.gd — write world-progress bitmask to user://.

Optional layers: revival_soul_grave.gd, revival_ghost_mode.gd, revival_death_analytics.gd.

NEVER Do (Expert Revival Rules)

Lifecycle & State

Persistence & Data

UX & Pacing


Available Scripts

MANDATORY: Read the appropriate script before implementing the corresponding pattern.

[revival_global_manager.gd](scripts/revival_global_manager.gd)

Expert singleton for the global respawn loop. Autoload boot: register as RevivalGlobalManager before level scenes. Resolves the living body with get_tree().get_first_node_in_group("Player") — put the player in group Player (exact name). Owns player_died / player_respawned; levels and UI must not queue_free() the player.

[revival_checkpoint_persistence.gd](scripts/revival_checkpoint_persistence.gd)

Resource-based system for saving last checkpoint and world state to disk.

[revival_health_restitution.gd](scripts/revival_health_restitution.gd)

Professional I-frame and health replenishment logic for post-revive stability.

[revival_soul_grave.gd](scripts/revival_soul_grave.gd)

Expert 'Soul Retrieval' mechanic for spawning graves at death coordinates.

[revival_checkpoint_validator.gd](scripts/revival_checkpoint_validator.gd)

Progress-aware shrine/Area3D gate. Export progress_index + checkpoint_id; on enter, call RevivalGlobalManager.set_active_checkpoint(...) only if progress_index >= RevivalGlobalManager.get_progress(). Group the detector / player interact area so backtracking cannot downgrade the active shrine. Pair with revival_checkpoint_persistence.gd for durable writes.

[revival_death_timer.gd](scripts/revival_death_timer.gd)

Professional respawn delay manager with UI and animation hooks.

[revival_ghost_mode.gd](scripts/revival_ghost_mode.gd)

Expert 'Spirit World' transition logic involving collision layer swapping.

[revival_state_reset_guard.gd](scripts/revival_state_reset_guard.gd)

Essential utility for purging velocity and state locks upon player respawn.

[revival_checkpoint_visuals.gd](scripts/revival_checkpoint_visuals.gd)

Material-swapping logic for providing clear 'Active' feedback to players.

[revival_auto_save_manager.gd](scripts/revival_auto_save_manager.gd)

Automatic save-trigger logic for ensuring checkpoint persistence.

[revival_spectral_shader.gdshader](scripts/revival_spectral_shader.gdshader)

Translucent, glowing "ghost" effect for downed players.

[revival_async_restorer.gd](scripts/revival_async_restorer.gd)

Smooth stat restoration logic using Tweens for organic recovery.

[revival_death_analytics.gd](scripts/revival_death_analytics.gd)

Persistent logging of death telemetry (cause, location, time) for balancing.


Expert Revival Patterns

1. Spectral Visual Feedback

Don't just hide the player. Use a Spectral Shader to communicate the "Downed" state.

2. Death Analytics Ledger

Use Death Analytics to find "Difficulty Spikes".

Reference

Progressive disclosure: open Official Documentation links only when researching a specific API; load Related Skills when routing to a peer domain — do not preload the whole lattice.

Official Documentation

Related Skills

Prerequisites
Complements
Downstream / consumers
Master
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.