Forum Discussion
Using a variable to show a layer
It's possible to use a variable so the Next button will move between layers. But that just makes it more complicated to program. For example, what happens if the user clicks Prev? And, personally, I think using that makes it more confusing for the user. The Next button should be reserved for slide-to-slide navigation, not navigation within the slide (IMHO).
I think it'd be better to replace the "Click Next to continue..." text box with a "Continue" button that shows the next layer. That's simple to program, and then the Next trigger can just be "go to the next slide" as usual.
To ensure the user steps through the layers, you will need a variable.
- Create a T/F variable with the default value of False. For example, call it Tea_Done.
- Add a trigger to the base that disables the Next button when the timeline starts -- with the condition that Tea_Done = False.
- Add a trigger on the final layer that changes the Next button to Normal.
- Add a trigger on the final layer that adjusts Tea_Done to True (so the Next button won't be disabled if the user returns to the slide).
As for those mystery triggers: they change object states, apparently to make it look like the tea is served and then drunk. But, as you noticed, they occur when the user clicks the picture--which they have no reason to do. So you could either have those triggers occur at a specific point in the timeline, or just delete them.
Side note: It would be so much easier to work with this if the initial developer had given the objects meaningful names. It's especially important to name anything that's part of a trigger. So you might want to rename things for future reference.