Tuning volume

Get help using Construct 2

Post » Tue May 01, 2012 2:55 am

Hi there. I've found a problem that I can't seem to fix.

Is it possible to tune volume/force game to play the sound only once when it happens to be triggered multiple times simultaneously? As for example, my fighting game is about beating up masses of enemies. When player punches a group of enemies, the sound of hitting every enemy plays at the same time causing serious crackling noise.

I've thought about making some minor delay before the sound so the engine gets time to count and "filter" some sounds off, but haven't done it yet.

Any better ideas?
B
15
S
5
G
4
Posts: 214
Reputation: 3,124

Post » Wed May 02, 2012 7:56 pm

It will clip if multiple sounds are triggered, are you adding a tag to the sounds triggered?

You could have a global variable for each, to be reduced/increased each additional sound.

So for example, each time someone is hit

Fist On Collision with Face :
|
_ PunchSounddBvar=PunchSounddBvar*0.5
_ Audio - PlaySound Punch Tag "Punch"
_ Audio - Set Volume "Punch" PunchSoundDbvar



Image
B
27
S
9
G
5
Posts: 487
Reputation: 11,939

Post » Fri May 11, 2012 10:43 pm

Sorry for late answer, but I don't get your example. Could you make it more simple, or explain it better? Sorry for being a bother, but I'm really out of ideas here.
B
15
S
5
G
4
Posts: 214
Reputation: 3,124


Return to How do I....?

Who is online

Users browsing this forum: Renfd, supreme676 and 27 guests