Copyright © 2025-2026 Candy ArtsBackgrounds
Dialogues can display backgrounds behind the dialogue UI: a room, a landscape, a sky with clouds drifting by, a flickering fire...
A background is composed of layers, stacked on top of each other. Each layer displays its own file (an image, an animation or a video) and is controlled separately, so a scene can combine a still landscape, an animated sky and a video of rippling water, and change any of them without affecting the others.
Background Scenes
Layers belong to a Background Scene: a UI Element whose layers are nodes you place yourself, at any size and position. The Engine locates it through backgrounds_path in its ui_elements_paths.
How to build one, and its settings, are explained in Background Scenes (UI section).
Layer files
Each layer has its own media folder, named like the layer node: Candy_DE/Media/General/Backgrounds/{layer}. What a layer can display depends on its node type: see Media Files.
Layers with the same name in different Background Scenes share the same folder. With general layer names (Sky, Ground, Foreground), one set of files serves every scene.
Background Commands
Dialogues control backgrounds with the BG commands. Each command can act on several layers at once, each with its own settings.
| Command | Purpose |
| BG_Play | Display a file on a layer, and play it. |
| BG_Wait | Wait for a layer's playback. |
| BG_Pause | Pause a layer. |
| BG_Resume | Resume a paused layer. |
| BG_Skip | Move a layer's playback to another point. |
| BG_Mirror | Flip a layer horizontally or vertically. |
| BG_Stop | Stop a layer's playback, leaving it on screen. |
| BG_Remove | Empty a layer. |
| BG_Scene | Replace the whole Background Scene with another one. |
| BG_Effect_ commands | Play animations on layers: see Background Effects. |
candy_de.clear_bg_layers_ood(engine), with the Engine whose Background Scene should be cleared.
Suspension
When a Dialogue is suspended (see Suspending Dialogues), its backgrounds pause with it. The Engine's settings decide what pauses:
- suspend_backgrounds: pause backgrounds at all.
- suspend_bg_animations: pause the layers' playback.
- suspend_bg_effects: pause the effects.