Hey so im currently working on a gun system, and of course i need the gun sound, which i have, but my issue is if i shoot a bullet and shoot another after instead of the sound playing on top of the other it cuts out the other sound and plays the most recent one instead, how can i change this?
Copy the sound and play a copy
gets quite cluttered though [characters]
You might be able to set their PlayOnRemove to true, then Clone the sound. After that, destroy the sound.
do i really have to do that? why cant i just use smt else
Try making each bullet have a copy of the sound. This way the sounds can play and not cut out.
just as what suggested above, you can set a code to copy the sound that will play each time.
and then you’d just set a parameter whenever you are done shooting to getchildren and delete if the instance is a sound object with the same name.
though, I won’t suggest since it could clutter, so I suggest to add a limit to how many can get shot to prevent spamming and cause a lag to the game or while using the tool.
I don’t think there is another way, if you want a sound played to overlap another sound is has to be 2 different sound instances.
alright thanks for all the answers
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.