Forum Discussion
Setting position of slider via trigger
You can do it. The most significant part is that you need to keep track of where they are.
Create a variable (I’ll call it MaxNumberAllowed) with a default value of 1.
Create a trigger: Set variable slider1 to MaxNumberAllowed when Slider1 changes if Slider1 > MaxNumberAllowed. This is the secret sauce that doesn’t allow them to advance. Change slider1 when learner releases. Create a second trigger (which must be lower in the trigger list than the other one.): Go about your business (show layer, jump to slide, eat lunch, whatever) when slider1 changes if slider1 <= MaxNumberAllowed. This is the secret sauce that keeps it from doing business twice if they move the slider took far. When business is completely finished, change MaxNumberAllowed.
If you try to change MaxNumberAllowed by adding to it, there is a potential for trouble. Imagine this scenario: they go to step three, you add 1 to MaxNumberAllowed, then they go back to step two. When it finishes you add 1 to MaxNumberAllowed. Now they can go to step 5 without going to step 4. What you need to do at the end of each step is to set MaxNumberAllowed to the appropriate number for the next step. This is the secret sauce that keeps track of where they are and how far they can go. That way, repeated visits to a step won’t mess up the requirement that they can advance only to the immediately following step.
Any questions ask.