How do I control specific volume levels?

Get help using Construct 2

Post » Tue Jun 02, 2015 8:06 am

My main menu is almost complete; I'm just working on the Options menu.
I'd like to have different variables for volume regarding Ambience / Background sound, SFX, Voice and Music.
Four separate controls. I've got it all set up to change variables, all I need is an actual function that changes volume levels when x = y.
B
3
Posts: 6
Reputation: 189

Post » Tue Jun 02, 2015 9:07 am

I'm not sure what you mean by when x = y?

If you have the variables
Wouldn't it just be a case of setting the volume inside the play action to the variable?
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Tue Jun 02, 2015 9:51 am

What I'm saying is that Music, Ambience, Sound & SFX should all have their own variables, controlled by variables which are changed at the Options menu.
I can't figure out if there's a way to set these as four separate audio "channels" for lack of a better word.
B
3
Posts: 6
Reputation: 189

Post » Tue Jun 02, 2015 10:04 am

I'm guessing, you know which sounds belong to which category..

So in the play audio action (which you would have to make for each sound anyway) you could assign the right variable to the right sound..

If you want to affect sounds already playing, adding the tag "Music", "Ambience", etcetera to the play action, should work..
Then you can reference those in your event-sheet to set the volume..

Could be, I'm completely missing the point of your question, though..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Tue Jun 02, 2015 10:57 am

I just want to organize four categories of sounds, and have their volume / db controlled by a variable. For some reason if I have the variable "MusicVolume" and the music file tagged with "Music", this does NOT work: Set "Music" volume to MusicVolume dB
B
3
Posts: 6
Reputation: 189


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 14 guests