Can anyone take a look at a code?
lescobar94
Member Posts: 25
I'm making a trivia game in which the next level is unlocked whenever you reach the last question for the current level.
The coding is simple. Whenever that last scene for the level is reached, a behavior changes a boolean attribute to true. Then, the level two button has an if clause that stated that if that attribute is true, then it should become functional but it's not working. Is there a way someone can take a look at this code and tell me is there is something I'm doing wrong?
The coding is simple. Whenever that last scene for the level is reached, a behavior changes a boolean attribute to true. Then, the level two button has an if clause that stated that if that attribute is true, then it should become functional but it's not working. Is there a way someone can take a look at this code and tell me is there is something I'm doing wrong?
Comments
This is the idea: the first snapshot is taken from the actor that changes the "Stage 1 Clear" Attribute to "true" and the remaining snapshots are of the Stage 2 button.
The behaviors for the Stage 2 button are telling it to display a rollover image and change scenes when touch is released if Stage 1 Clear is true. If it's not true, it should change image to a greyed out image of the Stage 2 button and it shouldn't be clickable until the attribute is true.
The behavior that says "if false" is referring to if Stage 2 is clear, to make sure that people don't go back and play the same level twice to get double points.
I know its confusing this way but ask if you don't understand