Scene System

Contents
Scene structure
In DVN a scene con consist of many objects and some objects are transfered to the next scene unless otherwise specified.
This includes background and music for example.
Characters for example are not transfered to the next scene automatically, however a scene can consist of multiple text entries that basically creates mini-scenes behind the scene.
This is the order in which a scene is rendered:
- Music
- Sound
- Act View (If specified all other objects are ignored.)
- Custom View (If specified all other objects are ignored.)
- Background
- Pre effects
- Characters
- Images
- Videos
- Animations
- Labels
- Dialogue Panel
- Text
- Options
- UI Components (save, q-save, auto etc. labels.)
- Post effects
Transitions
By default transitions between scenes (not sub-scenes) will fade out and in again to the next scene.
You may use effects to create other transitions such as zooming and moving the background using the BackgroundMoveZoom effect.
Example:
effect:pre=BackgroundMoveZoom
Entry points
By default the entry point to the story is a scene called main but you can specify the entry point yourself in settings.json
...
"mainScript": "main",
...
Navigation
Navigation between scenes happen on either a text scene node or an option scene node.
t:next-scene=The next scene.
or
What scene?
scene-1 -> Scene 1.
scene-2 -> Scene 2.