How do I Control volume

Get help using Construct 2

Post » Mon Jun 08, 2015 7:52 pm

So I can't understand a couple things, 1 how can I control the volume with a slider and 2 I have a pause an unpause button but if I go to a new level and hit mute when I hit unmute two of my song starts to play
B
22
S
8
Posts: 203
Reputation: 2,059

Post » Mon Jun 08, 2015 8:07 pm

You can set the max and min value of the slide bar to whatever value you want, so set the min value to -20 or -30 I don't know exactly, and the maximum to the same thing.

Not that 0 is the original volume of the sound or song you're playing so set 0 to the maximum of the slide bar depending on what you want to do.

If you play a song on the start of every layout, a song will be played every time you change layouts, but this doesn't mean the song that was playing previously will stop.
To avoid to songs playing at once, on the start of the layout, on the same condition that you start playing the song, create a event to stop playing the song that was playing previously.
Just because the song is mute doesn't mean it's not playing.
B
17
S
7
Posts: 280
Reputation: 2,522

Post » Mon Jun 08, 2015 8:24 pm

Thank you! I figured it out! What I had was so I didn't have start of layout I had when Unmute was clicked to play the song so on a different layout if you hit Unmute it unpaused the song from the last layout and started playing it again for the new layout
B
22
S
8
Posts: 203
Reputation: 2,059


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 6 guests