Sound button.
iDeveloperz
Member Posts: 1,169
Hi guys what is wrong with my sound button it doesn't work, I have put a screenshot on my website. http://www.ideveloperz.com
Thanks
Thanks
Comments
Second, You can simplify it by nesting those two rules into one, like this:
Rule
When Touch is Pressed
Rule
When game.Sound = 0
Change Attribute game.Sound To: 1
Change Image To Sound On.png
OTHERWISE
Change Attribute game.Sound To: 0
Change Image To Sound Off.png
That sort of works, the image changes but reverts itself straight away.
http://gamesalad.com/game/play/32913
can you take another screenshot?
Right now you only have one Rule, you need two. But they need to be nested inside each other.
You need to match my post above exactly.
The quickest way to fix it, is to do this exactly:
1. Click the minus sign next to the condition: When Actor receives event touch is pressed.
2. Click the title bar of the Rule so the whole thing is selected (blue)
3. While the Rule is selected, Click the "Create Rule" button at the top to wrap the selected Rule in another Rule
4. Change the condition of the outer Rule to be: When Actor receives event touch is pressed
Let me know if you are still having problems.