Soundboard

I am trying to make a soundboard. How can I stop a specific sound while it is playing?

Comments

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598

    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

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

Sign In or Register to comment.