Reset layout and Music problem - plays 2 on reset

Get help using Construct 2

Post » Fri Mar 17, 2017 7:48 pm

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.
B
8
S
1
Posts: 86
Reputation: 618

Post » Fri Mar 17, 2017 8:15 pm

Never mind. I just needed to stop all sound before restarting the layout.
B
8
S
1
Posts: 86
Reputation: 618


Return to How do I....?

Who is online

Users browsing this forum: Narus11, sbucci and 4 guests