Attribute Question
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?
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
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.
- 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:
-> 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!!
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