Copyright © 2025-2026 Candy ArtsMedia Volume
In this tutorial, you will learn to change the volume of a sound, at once or progressively, with the Media_Volume command. Alice closes the window, and the birdsong fades down. When she opens it again, the birdsong fades back up.
Before You Start
This tutorial uses the Actors and portraits of the Beginner tutorials: Alice, John and the construction worker. Write its scene in the Dialogue of your choice: the Dialogue of the Beginner tutorials, or a new one (File > New Dialogue).
1. The Sound File
Sounds are played by audio players. The dialogue UI provided with Candy Dialogue Engine contains several of them, and this tutorial uses the one named Ambient, for background sounds: the AmbientPlayer node of the dialogue UI scene. Each player plays the files of a folder named after it: the Ambient player's files are in Candy_DE/Media/General/Audio/Ambient.
The birdsong, Birds.ogg, is already in that folder: it's part of the Media folder copied in the Dialogue tutorial. It lasts twenty seconds, and loops without a gap.
2. Writing the Scene
1. Add a Conversation named "Window", as in the Conversations tutorial.
2. In its Block_1, add four Spoken Lines, then an End command after the last one:
| Speaker | Portrait | Text |
| Alice | Skeptical.png | Those birds are so loud this morning. Let me close the window. |
| John | (empty) | Much better. I can finally hear myself think. |
| Alice | (empty) | On second thought, I miss them. |
| Alice | Happy.png | There. Spring is back. |
