Trouble with button toggle on/off

A 'simple' problem, but can't seem to fix it!

The buttons for the sound effect does a random in out in out before settling when you press it (i haven't bothered making the music button yet till I get one right).

Here is the link to the file: http://dl.dropbox.com/u/56245994/Toggle icon.gameproj.zip

Any help would be much appreciated!!!

Cheers

Best Answers

  • gyroscopegyroscope I am here.Posts: 6,598
    edited January 2013 Accepted Answer

    @JagonApps Hi, amend the touch rule in the Options- SFX Vol actor like this and it should be good to go:

    Rule: When touch is pressed
    Rule: ---nested in the above rule --- When attribute game.SFX Volume toggle is true
    Change Attribute game.SFX Volume toggle to false
    Otherwise
    Change Attribute game.SFX Volume toggle to true

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

  • RThurmanRThurman Posts: 2,881
    edited January 2013 Accepted Answer
    Alright! It is much better to tackle one challenge at a time.

    The problem with the current setup is that it is toggling true and false just as fast as the system can. You can actually see the icon jittering between the two options.

    There are several ways to fix this. But try this way first:

    When touch is pressed
    -- When Attribute: [game.SFX Volume toggle] is [true]
    ----Change Attribute: [game.SFX Volume toggle] To: [false]
    --Otherwise
    ----Change Attribute: [game.SFX Volume toggle] To: [true]


    Edit: Curses! Beat out by @gyroscope again! (And mere seconds to boot!)

Answers

  • JagonAppsJagonApps Member Posts: 241
    Hey there!

    Many thanks to both of you, same answer and it worked like a charm!

    @RThurman yere I know my last try was a bit ambitious, but all parts are finally working now!

    Cheers
Sign In or Register to comment.