The Enchanted Cave 2
Delve into a strange cave with a seemingly endless supply of treasure, strategically choos
4.39 / 5.00 38,635 ViewsGhostbusters B.I.P.
COMPLETE edition of the interactive "choose next panel" comic
4.09 / 5.00 15,161 ViewsWhat I'm trying to do is to create something like a soundboard.
But the problem is when I click one button many times the sound doesnt stop and start it just starts again making the sounds spam together and sound horrible.
Is there any way to stop and start a sound on the same button so that the sounds wont be spammed together?
Like if you had a button which plays a sound, and when you click it 1000 times, the sound starts 1000 times.
What I'm trying to do is 1 - click, 1 - sound and each time you click the button all other sounds stop, and only one sound starts. One at a time.
When one of the buttons is pushed, make a var that references that sound. Then you need to put some code into the buttons that checks to see if that variable has a reference, and, if it does, stop the sound using the reference and start the next sound.This cycle will be repeated. This method works well in AS3, but I don't know about AS2.