Quantcast
Channel: GameSalad 101 — GameSalad Forums
Viewing all articles
Browse latest Browse all 8931

Mute/Un-Mute Button

$
0
0

I'm having trouble getting a button to un-mute after muting.
I have an actor that when:
Touch is pressed
and Game.audio.sound volume is > 0
Do: Change attribute game.audio.sound volume to 0
and Change image (to mute image)

Next rule on same actor

Touch is pressed
and Game.audio.sound volume is = 0
Do: Change attribute game.audio.sound volume to 1
and Change image (to unmute image)

If i turn the second rule off, then the first one works fine to mute. However I want to be able to click the same button and have it mute/unmute with corresponding image change. Anyone know how to make these rules work together? Or alternate ways to solve this of course.


Viewing all articles
Browse latest Browse all 8931