Attribute Question

CaptFinnCaptFinn Member Posts: 1,828
edited August 2012 in Working with GS (Mac)
Ok I have a issue with a attribute. I have a Scene that has 2 buttons. Each button has a rule.

Button1: on press - Change Attribute Difficulty"Index" to 1 -and go to Scene 2.

Button2: on press- Change attribute Difficulty"index" to 2 - and go to Scene 2. This is so that once Im at scene 2. The button on scene 2 knows what the difficulty is set at.

Scene2:

Button on Scene2:
Rule1: on Press and if Difficulty is 1- go to scene3
Rule2: on press and if difficulty is 2- go to scene4.

But even when difficulty is 2 the button takes me to scene3.

What am i doing wrong?

Comments

  • stackpoolestackpoole Melbourne, Victoria, AustraliaMember, PRO Posts: 473
    edited August 2012
    I'm really confused .. (at what your are trying to ask here/saying)
    Button1: on press - Change Attribute Difficulty"Index" to 1 -and go to Scene 2.

    From this we know that your difficulty"index" is 1..
    & so you move on to scene 2, your index is still 1..

    From what I see, I can't see any rule that changes your index from 1 to 2.
    But even when difficulty is 2 the button takes me to scene3.

    - I'm guessing your difficulty is still 1, even though, you think it is TWO!
    which means you go to scene 3, as it states here:
    Rule1: on Press and if Difficulty is 1- go to scene3

    -> Make sure you have a debugger (e.g. display text) which displays what difficulty your index is on, so you can see what the difficulty actually is!

    -> Hope you understood, and hope you will solve your problem.

    Sydney Swans 2014!!

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited August 2012

    Hi, try this, see if it works for you:

    Button on Scene2:

    Rule: When touch is pressed
    Rule (nested in above): When Difficulty is 1
    Change Scene scene3
    otherwise
    Change Scene scene4

    Good idea from @brendanzh926 concerning temporary display texts, just to check if your method is actually working if your scenes look similar...

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

Sign In or Register to comment.