The best way to make volume control ?

Get help using Construct 2

Post » Wed Nov 05, 2014 12:19 am

Hi all
I want to make a volume control option on my main menu.
But it seems very difficult to control all the 50 sounds in one button, because the original sounds not all in the same db.
If there an option to add x db or subtract x db from all sounds, Or any way to achieve this with variables?

Thank's for any advice
B
60
S
10
G
10
Posts: 1,013
Reputation: 9,155

Post » Wed Nov 05, 2014 7:54 pm

Any help?
B
60
S
10
G
10
Posts: 1,013
Reputation: 9,155

Post » Wed Nov 05, 2014 8:22 pm

Maybe you could make a function, that way you only have to write the entirety of the code once and if you ever add more sounds to it you just have to update the function.

Go through the Construct Manual and check out Functions
B
8
Posts: 12
Reputation: 338

Post » Wed Nov 05, 2014 10:03 pm

A0Nasser wrote:If there an option to add x db or subtract x db from all sounds, Or any way to achieve this with variables?

You do not have the required permissions to view the files attached to this post.
B
66
S
24
G
7
Posts: 1,514
Reputation: 11,039

Post » Thu Nov 06, 2014 12:12 am

@korbaach
Amazing ... i will test it on more sounds and i will replay here.
B
60
S
10
G
10
Posts: 1,013
Reputation: 9,155

Post » Thu Nov 06, 2014 1:51 am

...or you can use sliders...
You do not have the required permissions to view the files attached to this post.
B
66
S
24
G
7
Posts: 1,514
Reputation: 11,039

Post » Thu Dec 04, 2014 10:36 am

I created volume control inside my game, where you can adjust the volume you want. it works fine in emulator and in browsers but it is not working properly n mobile devices. I can't adjust the volume, " always MAX"
B
3
Posts: 5
Reputation: 185

Post » Thu Dec 04, 2014 11:19 am

How many sounds in your game?
B
60
S
10
G
10
Posts: 1,013
Reputation: 9,155

Post » Thu Dec 04, 2014 1:15 pm

1 sound
B
3
Posts: 5
Reputation: 185

Post » Fri Dec 05, 2014 12:09 am

I didn't found any method to control many sounds volume except if all sounds in the same db.
If the sounds in different db there no easy way.
B
60
S
10
G
10
Posts: 1,013
Reputation: 9,155


Return to How do I....?

Who is online

Users browsing this forum: Darknessed, FabianB and 42 guests