SOUND EFFECTS HELPPPP!!!!!!!!

ElectricGamerz1ElectricGamerz1 Member Posts: 25
edited April 2012 in Working with GS (Mac)
DOES ANYONE KNOW HOW TO CREATE A SOUND FX BUTTON (ON/OFF TOGGLE) THANKS

Best Answer

  • JohnPapiomitisJohnPapiomitis Posts: 6,256
    Accepted Answer
    make an interger attribute called soundOff

    In your sound button have a rule when touch is pressed
    -change attribute soundOff to (soundOff+1)%2

    Then have another rule when attribute soundOff=1
    change attribute device audio sound volume to 0
    OTHERWISE
    change attribute device audio sound volume to 1

Answers

Sign In or Register to comment.