Skill: Scene Transitions + Spawn Points (3D)
Objective
Implement transitions between discrete area scenes with deterministic spawn placement.
Steps
- Define spawn points in each area scene
- Add a
SpawnPointsNode3D. - Add
Marker3Dchildren named by spawn id (e.g.,FrontDoor,BedroomDoor).
- Implement
SceneRouterautoload Responsibilities:
goto(scene_path: String, spawn_id: String)- fade out -> change scene -> position player at spawn -> fade in
- preserve
GameStateacross scenes
- Implement a reusable
Doornode/scene
Area3Dwith 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.