toggle menu
Categories
Discussions
Dashboard
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Dashboard
Sign In
·
Register
×
Home
›
GameSalad 101
›
Working with GS (Mac)
Soundboard
ds1239
Member
Posts:
33
March 2013
in
Working with GS (Mac)
I am trying to make a soundboard. How can I stop a specific sound while it is playing?
Comments
gyroscope
I am here.
Member, Sous Chef, PRO
Posts:
6,598
March 2013
Hi
@ds1239
Firly, make sure that in your Play Sound Behaviours you want to stop at some time doesn't have Run to Completion checked.
Then make a boolean attribute. So if you're triggering a sound to play with a touch rule then put in the actor that plays the sound put:
Rule: When attribute scene.Sgo is true
Play Sound
-----
then perhaps in another button to stop the sound
Rule: when Sgo is true
Change Attribute Sgo to false
or if it's toggled to stop and start in the same sound button:
Rule: when Sgo is true
Change Attribute Sgo to false
Otherwise Change Attribute Sgo to true
Sign In
or
Register
to comment.
Comments
Hi @ds1239 Firly, make sure that in your Play Sound Behaviours you want to stop at some time doesn't have Run to Completion checked.
Then make a boolean attribute. So if you're triggering a sound to play with a touch rule then put in the actor that plays the sound put:
Rule: When attribute scene.Sgo is true
Play Sound
-----
then perhaps in another button to stop the sound
Rule: when Sgo is true
Change Attribute Sgo to false
or if it's toggled to stop and start in the same sound button:
Rule: when Sgo is true
Change Attribute Sgo to false
Otherwise Change Attribute Sgo to true