Forum Discussion

KirstenFalch's avatar
KirstenFalch
Community Member
3 months ago

Can I make a quiz result control object state?

I am creating an "escape room"-game. I have a manor with six rooms. Each room has multiple objects you can click on and each object leads to some questions on a given subject. When the object-questio...
  • JudyNollet's avatar
    3 months ago

    You could track whether questions were answered correctly via using T/F variables.

    • For each question, create a T/F variable with a default value of False. That will represent an incorrect answer. 
    • On each question, add a trigger that changes the associated variable to True with the condition(s) that the correct answer(s) = Selected. This trigger should run when the user submits their answer. Be sure it comes before any trigger that jumps to another slide (for example, the standard Submit interaction trigger on question slides). 
    • On your results slide, use the value of the T/F variables to control whether the associated padlock changes opens or not.

    t’s worth the effort to learn about variables and trigger conditions, because they provide the real power in Storyline. Here’s more information: