How can i Stop a sound?
JCFord
Member Posts: 785
There is a stop music behaviour, but no stop sound?
I have a sound fx that plays at the start of a new scene (sound A), there is also a button that if the user touches plays a sound fx (Sound .
At the moment if the user clicks the button very early at the start of the scene then both sound A+B play.
how can I make it so that if the button is clicked that it checks to see if sound A is still playing and if so stops sound A and plays sound B?
thanks
I have a sound fx that plays at the start of a new scene (sound A), there is also a button that if the user touches plays a sound fx (Sound .
At the moment if the user clicks the button very early at the start of the scene then both sound A+B play.
how can I make it so that if the button is clicked that it checks to see if sound A is still playing and if so stops sound A and plays sound B?
thanks
Comments
scene1:
if playsound = true, play soundA
Button:
actor receives touch and playsound true
change attribute to playsound = false
play soundB