Multiple triggers held until submit is clicked
Does anyone know how to prepare variables to be triggered only when the submit button is clicked?
I'm working on a file that has multiple variables. It's basically a quiz that gives you up to two mistakes. If you get a third mistake, a prompt shows up and asks you to retry the whole quiz. I have a gauge that changes states every time the score changes and this is also carried all throughout the quiz.
There are three variables: score, questionOne, and questionTwo.
Score holds the overall score of the quiz. It's set to a default of 3. Once it's 0, the fail layer shows up and asks you to retry.
QuestionOne and questionTwo are true/false variables with a false default. If you answer each question correctly, each is set to True.
Every wrong answer triggers the following to happen:
- Score - 1
- Shape (the answer you click on) state is changed to wrong
- Button (invisible button on top of Shape) state is changed to disabled (locks the answer already clicked)
- Incorrect layer is shown
- Failed layer is shown if Score = 0
Every correct answer triggers the following to happen:
- questionOne/questionTwo = true
- Correct layer is shown
I created a generic version of the quiz for privacy. I have set this all up already and it works. However, I want to change the functionality. I want to have the users choose an answer and then click submit.
Is there a way to have all of these triggers happen only when an answer is chosen and submit is clicked?
I have attached the Storyline file for anyone to play around with. Help would be appreciated!