Creates a new Scene instance.
Unique identifier for the scene
Optionaloptions: SceneOptions = {}Scene configuration options
Options for scene configuration.
Optionalbackground?: stringBackground image URL
Gets the scene's unique identifier.
The scene ID
Adds a character to the scene. The character will be shown automatically.
Adds an action to the scene's action queue.
Actions are processed in the order they are added. This method is typically
called internally by character methods like say(), show(), and hide(),
but can be called directly for advanced use cases.
The action to add to the scene
Represents a scene in the visual novel.
A scene is a container for a sequence of actions (dialogue, character visibility, etc.) that occur in a specific location. Each scene can have a background image and contains characters that can interact within it.
Scenes are added to a Script and played in the order they are added.
Scene
Example