# How to use Scene Flow

**Step 1: Organize your game scene**

**Scene Flow** uses scene as basic component for building the game flow. You can organise your game as sections and each section as a scene. For example, you can have your game to main menu scene, game-playing scene and ending scene. You can also separate overlay UI as individual scene and reuse UI at different sections of your game.

**Step 2: Create a bootstrap scene**

You need a bootstrap scene act as an entry point of your game. In the bootstrap scene, the **Scene Flow Manager** will act as a scene manager for controlling and loading other scenes. In addition, you can do your own initialization script in the bootstrap scene.

**Step 3. Create and design a Scene Flow Graph**

A **Scene Flow** graph represents a map of your game. All routes and actions are stored in a **Scene Flow** graph. You can design how your game navigation between scene in the graph and then they will used in runtime.

**Step 4. Connect Scene Actions**

The scene flow graph just defined the flow of your game. But you need to connect the actions defined to your own UI and script. In order to use the actions, you need a **Scene Action Manager** in each scene to acts as a bridge between the UI and scene action.


---

# 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.digicrafts.com.hk/sceneflow/how-to-use-scene-flow.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.
