Variable Confusion

Aug 20, 2013

Hi everyone! I'm on day 12 of my Storyline adventure and I've come across the first thing I can't figure out. So I've opted not to use the player controls and instead have all of the navigation on my screen. That said, I don't want the user to move ahead until they've click on all 3 shapes on the screen. Because its the users choice, there's any random order they could select so I figured variables would be the way to go. I've set the initial state of my "next" button to hidden and want to change the state to normal once the user has clicked on all 3 shapes. I can't get it to work. I've tried creating visited states for each of the shapes (even though it looks the exact same) and it's still not really working.

I feel like I'm a hair away from the obvious solution, but it is totally escaping me. I've attached the slide where I'd like the ever elusive variable to work if it helps.

Thanks!

2 Replies
Josh Uhlig

Hi Nikki, and welcome.

You could do this a couple ways.  Since you aren't changing the actual image once it has been selected, I suggest using variables. So create a true/false variable for each sign and set the initial value to flase.  On each sign layer, add a trigger that adjusts the value of the respective true/false variable to true.  Then on the "next slide" trigger (attached to the next button) add a condition that all 3 variables are true (using AND each time).

You could also add a new layer with a message saying they need to select all 3 signs before moving on.  That layer can be triggered with the same next button.  Just add a second trigger with the condition that any of the variables is false (using OR instead of AND).

Similarly, you could accomplish the same using a visited state as you said you tried, and just adjust the state and use that as the condition on the triggers.  I find variables a little easier as you can troubleshoot them more easily by temporarily displaying their values on the screen.

Hope that makes sense.

This discussion is closed. You can start a new discussion or contact Articulate Support.