Forum Discussion
Need help with changing the state of an object
Hello everyone! I am having an issue with the first course I built with Storyline. I have the impression that the solution must be so simple but I can't put my finger on it. I have a slide (1.4) where there are 3 circles, one for each following module. After each module, the circle is supposed to change its state to completed. Somehow, module 2 and 3 won't change state after the modules are completed. What is weird is that it works perfectly with module 1.
If someone could have a look it would be awesome! I have been going in circle all day. Thank you
- JudyNolletSuper Hero
Triggers run in order.
You've got triggers changing the buttons for modules 2 and 3 to Normal based on whether the previous module(s) are done.
Because the triggers that change the buttons to Normal appear after the triggers that change them to Completed, they end up as Normal.
Move those triggers up so they run before the triggers that change the buttons to Completed, and it should work as expected.
- KarineGagnon-8fCommunity Member
Thanks Judy! I did not know that the order of the triggers matters. Good to know haha.
- JudyNolletSuper Hero
Yes, it's very good to know that trigger order matters!
I've seen many problems caused by having triggers in the wrong order. The most common mistake is having the trigger(s) after a jump-to-slide or -scene trigger. Storyline can't run any triggers after it has left the slide where the triggers are. If the button that jumps to another slide includes other triggers, all those triggers need to come before the jump.