Hi chaps,
How would I go about looping sound? I'm trying to handle a looping sound onEnterFrame when the move button is being held but I keep just getting the sound playing hundreds of times at the same time. Nearly blew out a speaker hah!
Anyway, I tried using bools to determine whether the sound is currently playing or not but I'm not having much luck. I'm thinking this use case must definitely have come up before...
Comments
If you just want to simply play/stop on button touched/released you can do this:
Likes: Astirian
"What one programmer can do in one month, two programmers can do in two months." - Fred Brooks
“The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)
Likes: antix, Astirian
"What one programmer can do in one month, two programmers can do in two months." - Fred Brooks
“The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)
Yeah, logic problem on my part I think.
Likes: Apollo14, antix
https://deluxepixel.com