# 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sparkframework.dev/documentation/user-guide/core-systems/scenes.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
