Change the state of object on a layer based on variables
Aug 23, 2017
I created a game that keeps track of incorrect clicks through variables for each question. I set the variables to be equal to the total number of steps in each question. Each time the incorrect feedback layer shows and the user clicks to close it a point is taken away from the variable for that question. Their score is then shown on a tracking bar that has an object for each question they have to complete. The object will change state depending on how many points the user has for that question according to the variable. My triggers are as follows throughout the game:
Set Task1Score equal to 9.00 when timeline starts.
Subtract 1.00 from Task1Score when user clicks continue
Change state of Freeform 8 to Correct when timeline starts if Task1Score is greater than or equal to 7.00
Change state of Freeform 8 to Incorrect when timeline starts if Task1Score is less than 7.00
These work for all the questions I have created until my results slide. My results slide is two layers. A win layer (base layer) and a lose layer. The variables trigger the lose layer depending on the states of the objects. If 2 or more of the 4 objects are incorrect state the lose layer shows. This part works correctly. However, when the lose layer shows the objects show the normal state. I used the same triggers on this layer that I have for every other slide. But since this is a layer, I guess that is why it is causing me a problem. I read that you can't use a when timeline starts trigger on a layer so I have tried when variable changes and when timeline reaches 0.25 seconds. Neither of these worked either.
Can someone please help me out? Thank you.