In this project, I need to learner to not be able to move ahead in the training until they have visited three layers. I have tried multiple things over the course of several days thinking this has got to be easy to figure out. I would really appreciate help on this. I have a deadline. Thank you!
Thank you for sharing your .story file, and you are certainly on the right track!
The changes I would suggest are:
Instead of the trigger that turns the state of the Next button to normal when the text boxes are down, I would create the following one:
Since you want the Next button to work under certain conditions, while not necessary, it would also help to add conditions to the first trigger (Change the state of the next button to disabled when the timeline starts if the text boxes are normal).
I would also delete or disable the triggers you have for each text box, changing the state to Down when the user clicks on them:
First, you should know that it isn't a good idea to create a trigger to change a state to one of the built-in states, like Visited, Selected, or Down. They all have built-in triggers to make the appropriate change. If you create a trigger to do the same thing, you run the risk of your trigger conflicting with the built-in one, and bad things result from that.
If the base slide sets the state of Next and Previous, you don't need to do it again on each layer, especially since you have hidden base layer objects.
You can't jump to the next slide when all the triggers are in Visited state, because that state changes as soon as the object is clicked, so the jump would occur before the third layer is shown. The way to use states to advance is to use states you created, like one of your New States. Then when the learner returns from the layer, use that click to change the state.
The main reason you can't find a way to make this work is that on finishing a layer, you restart the slide. In that case, states are reset.
The best thing you can do is change this trigger:
First change it to Hide this layer, instead of jump to this slide. Then add one to change the state of the button that shows this layer to state New State. Then on the base, change Next to Normal when the state of the three text boxes is New State.
I'm glad that Walt and Maria were able to help you out here, Dianna.
It looks like your email signature came through when you replied via email. You can remove that if needed by clicking ‘Edit’ beneath your response. Here’s a quick Peek video if you need help.
6 Replies
Hi, Dianna,
Thank you for sharing your .story file, and you are certainly on the right track!
The changes I would suggest are:
Let me know if those changes work for you!
There are several things you can do.
First, you should know that it isn't a good idea to create a trigger to change a state to one of the built-in states, like Visited, Selected, or Down. They all have built-in triggers to make the appropriate change. If you create a trigger to do the same thing, you run the risk of your trigger conflicting with the built-in one, and bad things result from that.
If the base slide sets the state of Next and Previous, you don't need to do it again on each layer, especially since you have hidden base layer objects.
You can't jump to the next slide when all the triggers are in Visited state, because that state changes as soon as the object is clicked, so the jump would occur before the third layer is shown. The way to use states to advance is to use states you created, like one of your New States. Then when the learner returns from the layer, use that click to change the state.
The main reason you can't find a way to make this work is that on finishing a layer, you restart the slide. In that case, states are reset.
The best thing you can do is change this trigger:
First change it to Hide this layer, instead of jump to this slide. Then add one to change the state of the button that shows this layer to state New State. Then on the base, change Next to Normal when the state of the three text boxes is New State.
Thank you, Walt! That makes sense. Then what do you do? I thought about adding another scene. Would that be the right direction?
Thanks again.
Hi Maria! Thank you. I will try this!
I'm glad that Walt and Maria were able to help you out here, Dianna.
It looks like your email signature came through when you replied via email. You can remove that if needed by clicking ‘Edit’ beneath your response. Here’s a quick Peek video if you need help.
Thank you, Walt. I'm wrapping my brain around this now.