With a cool background in place, let’s try adding sound effects. In the Block Toolbox, there is a “Music” category. Besides the preset sound blocks, you can also customize your own sounds.

Regarding built-in sounds, feel free to experiment with them. They are mainly divided into three playback modes: “Play” (trigger and play from start), “Play until done” (wait until finished before proceeding), and “Looping” (play continuously).

Here, we will teach you how to compose your own music. After all, the number of preset sounds is limited and might not meet everyone’s needs. There are two common blocks to help you create music, as shown below:

First, let’s explain the “play melody…” block. The first field allows you to compose the “Melody,” and the second field sets the “Tempo” (bpm). The pop-up editor is very user-friendly; simply click on the grid to compose a melody. There is also a Gallery to choose from, and a play button at the bottom to listen to your creation.

How is it? Isn’t it fun?
However, this melody block has a drawback: it doesn’t have a built-in function to repeat in the background. Once composed, it can only be used as a standard sound effect, which is a pity.
This is where the second block, “start song…” (or play song), comes in. This block includes a background looping function, allowing you to toggle whether it plays on a loop.

Similarly, click on the first setting option of the block. It also has a convenient editor, but it doesn’t have a ready-made Gallery to use. The sounds are similar to synthesizer effects. Usage: Select a “Sound Option” from the top row (e.g., the Duck icon), and left-click on the “Staff” below at the position where you want the sound to play.

If you want a more standard tone, you can choose the Dog icon (third from the left). The Duck is very suitable for a spooky atmosphere, fitting perfectly with the background we just set.

After setting up your background music, don’t forget to set “looping” to “true” (check the box) in the block settings so the sound effect plays continuously!
