How to keep sounds from overlapping

Get help using Construct 2

Post » Wed May 13, 2015 10:23 pm

What would be the best way to prevent two or more of the same sounds from playing at exactly the same time, thus multiplying the volume? i.e. two enemies fire a bullet at the same time. I tried only playing the sound if its tag wasn't playing, but that didn't work.
Image
B
243
S
30
G
13
Posts: 1,787
Reputation: 18,770

Post » Wed May 13, 2015 10:44 pm

For one project i was working on I just used a simple variables that saves what sounds are currently playing and how many of them were playing.
Then i played a sound only if nothing with same name (from variable) was currently playing - by a simple usage of a function.
And also if there were, i believe more than 10 different sounds currently playing I did not allow to play any more sounds until at least one of them finished.
Don't know why but I don't trust tags ;)
ImageImageImageImage
B
157
S
66
G
42
Posts: 2,603
Reputation: 35,343


Return to How do I....?

Who is online

Users browsing this forum: adventurist and 25 guests