G
Gabriel
Guest
I have an object in my game which is a box that when touched, it activates a countdown and then explodes (Crash Bandicoot style). If there are other boxes close, they will explode immediately too.
Now, whenever a box explodes, an explosion sound is played. But what if, let's say, eight boxes explode at the same time? The sound will play eight times, making it extremely loud!
Since I do want the sound of multiple explosions to be slightly louder than the one from a single explosion, how can I limit it, so the other boxes won't play the sound if it is already playing 4 times (I want 4 to be the maximum amount, despite the number of multiple explosions).
Now, whenever a box explodes, an explosion sound is played. But what if, let's say, eight boxes explode at the same time? The sound will play eight times, making it extremely loud!
Since I do want the sound of multiple explosions to be slightly louder than the one from a single explosion, how can I limit it, so the other boxes won't play the sound if it is already playing 4 times (I want 4 to be the maximum amount, despite the number of multiple explosions).