posted 04-11- 07:23 AM CT (US) Dink is put into mouse mode and I have a button set to play a sound when clicked on. My problem is you can keep click on it as it plays. This causes it to play on top of it self multiple times. I also have a back button that returns you to dinks body and the sound survives the screen change. I have tried to use “kill_all_sounds” and it does not do any thing I have also tried “sound_set_kill(49)” 49 is the sound that would be playing but it crashes the program when it gets to that part. I just need it to kill all the sounds when you click on a button so you don’t get multiple sounds and so when you leave the sound stops. So what do I do? ~~NeonWaters~~
Wyndo
posted 04-11- 01:12 PM CT (US)
Well, to make sure you can't play the sound multiple times you could probably set a global var when it's played, then check it to make sure it's not already playing.
I don't remember how to kills sounds though. Isn't there a sound FAQ some place?