Need another set of eyes to look this over.
Dec 05, 2016
I'm having issues getting this to work. What I'm trying to do is once each yellow rectangle goes to the hidden state the rectangle variable adds "1" and once all 3 are hidden the variable should equal 3 and the Next button, which is first hidden, should change to the Normal state on the main slide.
What is happening is the first two rectangle that become hidden adds "2" each time to the variable and on the first rectangle it will add "1" to the variable.
I'm not sure what is going on. Please help.
7 Replies
Hi Adam
Do you want them to be clicking the oval to select the rectangle or they can click either?
Adam, not sure if this is what you are looking for, but I got your variable working by changing your variable triggers from Slide Triggers looking for a State Change to a "when user clicks" trigger. File attached. Hope this helps.
Hi Adam,
Change your action that increases the variable to when the slide layer starts rather than when the state of the button changes.
Also, from time to time I have issues with the "hidden" button state. I always create a custom state that hides the button or object and I never have a problem.
Adam,
Part of your problem is using the condition "If state is Normal". Several of the built-in states report that they are normal. Usually using "if state is not = Visited or Selected" will work.
If you use a visited state instead of Selected, you don't need to create your own triggers.
I suggest adding to the variable when the oval is clicked, but I added if the state of the oval is not visited. That keeps the count accurate if the user visits a layer twice.
When the layer is closed, I put a trigger to make the next button visible.
I changed the modified layer, but only the ovals. You need to add the trigger to change the state of the oval to visited when the rectangle is clicked, and also the trigger to add to the variable if you want the user to be able to click either (and you should allow them to click both.)
Would like for them to be able to click either.
Hi Adam
then you're best bet is to follow Walt's example above - he's explained it very well.
Thanks everyone for your help and thanks Elizabeth for the recommendation about the hidden states. I've been noticing more and more lately issues with using the hidden state. :(
This discussion is closed. You can start a new discussion or contact Articulate Support.