Jihl
Member
Hello!
My question is in regard of high volume when you play an audio repeatedly...
In my game you can kill lots of monsters, and the cut sound effect, hit sound effect and dying sound effect all get on eachother making a really big mess with the volume...
My solution was to make global variables to count how many times the sound has played over a short period, so it can only play, let's say like 3 times if they go out instantaneously. Then the counter goes down. All of this is to get myself not hearing the same sound 15 times if I kill 15 monsters at the same exact moment.
But is there another way to achieve this without using global variables?
Thank you!
My question is in regard of high volume when you play an audio repeatedly...
In my game you can kill lots of monsters, and the cut sound effect, hit sound effect and dying sound effect all get on eachother making a really big mess with the volume...
My solution was to make global variables to count how many times the sound has played over a short period, so it can only play, let's say like 3 times if they go out instantaneously. Then the counter goes down. All of this is to get myself not hearing the same sound 15 times if I kill 15 monsters at the same exact moment.
But is there another way to achieve this without using global variables?
Thank you!