0 Favourites

Reset layout and Music problem - plays 2 on reset

  • Here is my general set up for educational games. Since there are several games on a page, I have an intro screen with a start button.

    The start button moves out the intro screen and start playing the game music.

    In the game I have a Music button that toggles the music on or off with a click event or a Keyboard (M) event.

    When we use the reset button, though I stop the sounds, it is not killed. so when I start the game again I have the first music playing again and the new music starting to play, overlapping each others.

    Is there a way to actually kill the music on the reset button or should I start the music and set toogle to silent right away so it will always be the same music instance playing?

    Note: I cannot start the music on load otherwise when more than one game is on the page, they would all start playing their own music.

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • Never mind. I just needed to stop all sound before restarting the layout.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread sticky
763 305,597
asikanddestroy's avatar
asikanddestroy
Unread hot topic
302 48,062
Eric Matyas's avatar
Eric Matyas
Unread hot topic
0 Favourites
What are you playing?
135 15,342
Tetriser's avatar
Tetriser