Forum Discussion
Use one button to show multiple layers
You need to keep track of which layer is showing, so the next click shows the next layer. Keeping track of things is what variables do.
Create a variable (numeric or text, but you will likely be tempted to take shortcuts that can mess things up if you choose numeric). You might call it layerOpen. Set its default value to 0. Create triggers for the button. You’ll need one for each layer. They look like: “Show Layer1 when user clicks button if variable layerOpen = 0”. The next one is “Show Layer2 when user clicks button if variable layerOpen = 1”, and etc. Then on Layer1, put this trigger: “Adjust (set) variable layerOpen to 1 when timeline starts on this layer”, and etc for each layer.
If I were doing it, I would give the button seven different states, so the learner would know where they are. That would require seven more triggers for the button, like this “Change state of button to state1 when user clicks button if variable layerOpen = 0”, and etc.