Hi, Stephanie.
Thank you for sharing your .story file!
On slide 1.5, you want the Next button to become active only when all the layers and sub-layers are visited. The way you set up the trigger will only work if the last layer visited does not have sub-layers:
- Change the state of Next to normal when all the layers are visited IF all the sub-layers are visited.
- If not all sub-layers are in that state when the last layer is visited, the trigger won't execute.
The alternative is to use a custom state to check, instead of Visited. You have two options:
Option 1: Create a state (let's call it FullyVisited) for all your buttons on the base layer and the buttons on the other layers.
- Add triggers on your base layer to change the state of the button to FullyVisited when the three layers that don't contain sub-layers are called.
- On the three sub-layers, add the trigger to change the state of those related rectangles to FullyVisited when the timeline starts on the layer.
- On the base layer, change the state of the Next button to Normal when all the rectangles are in the FullyVisited state.
Option 2: Create a FullyVisited state only for those three rectangles connected to layers that have sub-layers.
- Create two triggers to change the Next button to normal: one where three rectangles are visited if the three others are FullyVisited. Another one where the three rectangles are FullyVisited if the other three are Visited.
- On the three sub-layers, add the trigger to change the state of those related rectangles to FullyVisited when the timeline starts on the layer.
I'm attaching an edited version of your file with the second option above.
I hope this helps!