Forum Discussion
Layer keeps showing - only want it visible once
When an action occurs, it runs through all the triggers that are attached to that action. Thus, when the timeline ends on Check Match layer, all the "when timeline ends..." triggers ate executed, even the ones that are not related to the current action. That's why Match 1 correct shows up every time the timeline ends. To prevent that, you need to put something in the trigger to prevent it from showing more than once.This trigger will not show it if the variable has not changed to True:
Then you need a method to change the variable to true when the layer Match 1 Correct is shown. This one will do that:
By the way, I notice that the Check Match layer has only one trigger to show a correct match (Match 1). I imagine you will add the others when it is working well. The attachment has only slide 2.10, so you can import it into your project.
Hello!
Thank you so much for your help! It really helped me sort this all out.
I've now come back with ANOTHER issue. This game just won't let me do what I want.
I have a layer of balloons that animate across the screen when all matches are made.
Originally I had a trigger to show that balloon layer shows when matches=6. It worked, except, the final Match Correct layer (whichever match was clicked last) wouldn't appear - as soon as the 2 cards were clicked and the variable Matches changed to 6/6, the balloons appeared.
I am trying to create triggers so that the balloons only appear AFTER all the Match Correct layers have shown so the user can get all the information.
I created a variable called visited, which is true when all the Layer1-6MatchCorrectShown=true.
But now the balloons don't show at all. I need help sorting out the triggers. I know I'm forgetting something, but can't quite work out how to make the balloons appear after ensuring all the Match Correct layers have been shown.
Thank you for all your help!
I am adding an updated file (Slide 2.11) - I tried to export a single slide but it wouldn't give me a .story file - just the individual pieces of the file.