Using variables to show layers after visiting a page

Feb 07, 2013

I'm trying to use variables to show layers after visiting a page. Here's the idea:

1. start on home slide

2. click button 1 and it jumps to slide
3. on that slide a unique variable is set to a value
4. click next and it returns to home slide, where the variable is checked in order to show button 2

5. click button 2 and it jumps to a corresponding slide

6. on that slide a unique variable is set to a value

7. click next and it returns to home slide, where the second variable is check in order to show button 3

8. and so on...

The idea is to have learners finish viewing content on a slide before the next button shows up on the "home" page. But it's not working. I've tried setting the variable two ways: jump to slide and then setting variable when the jump to slide finishes; and changing the variable with a button when the jump to slide finishes.

Neither way seems to work. Here are links to samples of the two versions.


http://www.basismedia.com/transfer/variable_trigger_layer_visibility1.story

http://www.basismedia.com/transfer/variable_trigger_layer_visibility2.story

Any help is greatly appreciated.

4 Replies
David Anderson

Hey John,

Thanks for posting your files... It sure makes troubleshooting easy.

Okay, good news: simple fix.

Change your "Show layer" trigger event to "When: Timeline starts". Because you're evaluating the trigger when you're returning to a slide, you need a timeline event instead of a "when variable changes." 

I know you were testing a bunch of things to get it to work, but there were a few other things going on with your .story (variable_trigger_layer_visibility2.story) that I'd like to touch base on.

First, can you take a look at the attached file to see if it gives you what you're looking for?

John Luttrell

Hey David,

Thanks for the reply. Yes, I think that's getting closer to what I'm trying to accomplish. However, I'm looking for it to be sequential so you have to click on the buttons in order 1-2-3-4. In other words, if you click on 1, it goes to that slide, and upon return it enables both buttons 1 and 2. When you click on button 2, it goes to that slide and enables buttons 1, 2, and 3. And finally, when you click on button 3, it goes to slide 3 and upon return enables button 4. So, after viewing slides 1-3, all four buttons are enabled.

Hope that makes sense!

Thanks,

John

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