Forum Discussion
Disabling Buttons on Base Layer
Hi - I have 3 buttons (1, 2, 3) on my base layer that show a slide layer for each. Each slide layer has audio. I want to disable the Slide Layer 2 button until the audio has completed on Slide Layer 1; and disable the Slide Layer 3 button until the audio has completed on slide layer 2. I'm able to force the learner to select the buttons in order (1,2,3), but can't prevent them from selecting the Slide Layer Button 2 once Button 1 is visited. Is there a way to keep Button 2 disabled until the media on Slide Layer 1 has completed? I would do the same thing for Slide Layer Button 3. Thanks.
- WendyFarmerSuper Hero
Hi Jesse
try creating some T/F variables and attach them to each slide layer. Trigger them to turn from False to True when media completes on Layer x. Then on base layer, only allow user to click Button x if variable from Layer x is true.
Hope that makes sense
- JoMurphy-383478Community Member
I've only been working with SL for about a month but this is a feature I want to understand better. Could you please provide more detail on how to do this? Thank you
- EmilyBurnettCommunity Member
Hi Jesse!
You could also set the buttons to initial state of "disabled" then add a trigger to the layer to change the state of the button to normal when the Layers timeline ends (if your timeline matches the length of the audio) Also close the layer when it ends, and the button should be available to click.
- GlennJones1Community Member
Agreed :)
Hi Jo and welcome to E-Learning Heroes. 😊
Thanks for reaching out and sharing what you would like to learn more about. We have tutorials specific to layers, triggers, and variables:
Storyline 360: Working with Layers
Storyline 360: Working with Triggers
Storyline 360: Working with Variables
If you've already started a project and are having a specific problem that you'd like some assistance with, we'd be happy to help. Please share your project file publicly here or send it to me privately by uploading it here. I'll delete it when I'm done troubleshooting.