Continuing background music on next scene?

Jovial Games

  • Posts: 132
Hey guys,

Here's what I want: When the menu opens up, it plays a background music and when you click on start level, that music should continue to the next scene, then continue for level 2, level 3, and so on. On a loop basically.

Any idea how to go about it? Thank you!

Luyren

  • *
  • Posts: 2789
Just use the loop sound block, and it should keep looping indefinitely, regardless of scene change.

If you want more control over the soundtrack in your scenes, check out my scene soundtrack behavior, which you can find here: https://luyren.itch.io/luyrens-miscellaneous-stencyl-behaviors
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.

ceosol

  • *
  • Posts: 2279
There are also blocks for checking where a sound file is compared to its length. If you want more control (e.g. starting bgm2 when bgm1 ends), use those blocks.

Jovial Games

  • Posts: 132
Very kind, thank you fellas!