Scheduled upgrade in progress. Some pages may load slowly or ask you to retry.

Scene Transitions

Implement 3D scene routing, fades, and spawn points

majiayu000 1bb996a 2 files · 1.3 KB Updated 567 repo stars

File contents

Skill: Scene Transitions + Spawn Points (3D)

Objective

Implement transitions between discrete area scenes with deterministic spawn placement.

Steps

  1. Define spawn points in each area scene
  • Add a SpawnPoints Node3D.
  • Add Marker3D children named by spawn id (e.g., FrontDoor, BedroomDoor).
  1. Implement SceneRouter autoload Responsibilities:
  • goto(scene_path: String, spawn_id: String)
  • fade out -> change scene -> position player at spawn -> fade in
  • preserve GameState across scenes
  1. Implement a reusable Door node/scene
  • Area3D with exported fields:
    • target scene path
    • target spawn id
  • On interact, call SceneRouter.goto(...).

Verification

  • Entering a door reliably changes scenes.
  • Player appears at the correct spawn marker every time.
  • Inventory/flags persist across transitions.

majiayu000/claude-skill-registry-data/tree/main/gaming/scene-transitions commit 1bb996ae43

Frequently asked questions

npx skillmds add majiayu000/scene-transitions