Scenes

The Scenes plugin manages scene loading and transitions. It provides a structured way to define game scenes as database entries and handle loading between them.

Scene Entries

Create scenes in the Spark Editor under the Scenes tab. Each Scene Entry represents a game scene (level, area, town, dungeon, etc.).

Scene entries store:

  • Display Name: The area name shown to players.

  • Description: Description of the area.

  • Icon: A loading screen image or map icon.

  • Scene Reference: The actual Unity scene file this entry points to.

By defining scenes as database entries, other systems can reference them by ID. Quest objectives can require visiting a specific area. Triggers can teleport the player to a scene. NPCs can offer travel to different locations.

Scene Management

The Scenes plugin handles:

  • Loading scenes with transitions

  • Passing data between scenes (which spawn point to use, etc.)

  • Loading screen management

Using Scenes

Scenes are referenced by their entry ID in triggers, quests, and other systems. For example:

  • A trigger that teleports the player: references a scene entry ID.

  • A quest objective: "Visit the Iron Mines" references the Iron Mines scene entry.

  • An NPC travel option: "Travel to the Capital" loads the Capital scene.

Last updated

Was this helpful?