Sound button.

iDeveloperziDeveloperz Member Posts: 1,169
edited November -1 in Working with GS (Mac)
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 :\

Comments

  • firemaplegamesfiremaplegames Member Posts: 3,211
    First, I would change it to Touch is Pressed.
    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
  • iDeveloperziDeveloperz Member Posts: 1,169
    @firemaplegames

    That sort of works, the image changes but reverts itself straight away.

    http://gamesalad.com/game/play/32913
  • firemaplegamesfiremaplegames Member Posts: 3,211
    You don't have an extra rule in there do you?
    can you take another screenshot?
  • iDeveloperziDeveloperz Member Posts: 1,169
    There is a problem with mobile me can I email it to you?
  • iDeveloperziDeveloperz Member Posts: 1,169
    Oh they are fixed, it's up on my site now.
  • firemaplegamesfiremaplegames Member Posts: 3,211
    Ok, I see what's wrong. You don't have the Rule nested properly...

    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.
  • iDeveloperziDeveloperz Member Posts: 1,169
    Oh right done it, thanks fire maples.
Sign In or Register to comment.