Continue music after lvl restart and level transitioning?

  • Hey, good people!

    I have two questions about adding the music into the game. First - is there a way to continue the music theme after the character died and the level restarts?

    The thing is that in my game the new players will most likely "die" multiple times in a row and I don't wan't them to be annoyed by the constant restart of the music theme, tied to this level.

    And the second question - let's say, I have one music theme tied to three themed levels. Is there a way to continue the music after level transitioning?

    Should I make separate event sheet for the music and add it to every level's event sheet and somehow tie the music to the global number which states what level is now?

    Thanks in advance!

  • Simply check if audio with this tag is playing. If not - start playback. If already playing - do nothing.

    And yes, it's generally a good idea to have different event sheets for different things. I have a separate event sheet, where I keep all my audio functions like "PlayMusic", "PauseMusic", "PlaySound", "SetVolume" etc.

  • Hey, good people!

    I have two questions about adding the music into the game. First - is there a way to continue the music theme after the character died and the level restarts?

    The thing is that in my game the new players will most likely "die" multiple times in a row and I don't wan't them to be annoyed by the constant restart of the music theme, tied to this level.

    And the second question - let's say, I have one music theme tied to three themed levels. Is there a way to continue the music after level transitioning?

    Should I make separate event sheet for the music and add it to every level's event sheet and somehow tie the music to the global number which states what level is now?

    Thanks in advance!

    by default a music still playing ever after changing layout.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • dop2000 NN81 Thanks for your answers!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)