Reset to initial state
Sep 04, 2018
I have a slide which is a drag and drop interaction, I have included a "restart" option in the form of a spoon which has a triger to jump to that slide. The drag objects (teabags) appear, along with some indicator text, and voiceover on layers for each.
They are dropped onto a hotspot, which changes the state of the object and text to hidden and reveals a label on a cup. My problem is if someone uses the spoon to restart because they have just got the drop wrong too many times, the state of the text on the cup of the object that has just appeared but has not been dropped onto a target yet is in normal not hidden, when everything else goes back to how it was - so I have one thing showing on the screen when there should not be. Can you give me some ideas on why this is? I'm not sure how my triggers could be causing it, as the state change hasn't been triggered at that point.
This might be a bit difficult to follow, so I have modified the slide a little and uploaded it, so you can take a look. Start the activity, drop one of two of the tea bags, then read the statement up top before clicking the spoon, and you'll see it appears on the cup when the slide jumps to itself again.
8 Replies
Hi Stacey,
I'm having trouble solving this one but I have noticed that all of the teabags have three triggers attached to them, except for teabag 9, which only has two triggers. Is this correct?
Yes, because the last one has no other statement to make visible.
Are there any variables specific to this slide that need to be reset when you click the spoon?
No, none of the shapes are adjusting a variable.
I've attached a version where I think I've fixed the issue.
I removed the triggers you'd attached to the text on the cups and put them on the teabags instead.
One suggestion I have is that you disable the teabag until the Start button has been clicked. Currently it is possible to have both sets of voiceover play together and to get the text to overlap the Start button.
David you are amazing! Thank you so much. Can I ask what the difference is having it on the tea bag instead of the cup? (Apart from it being so much cleaner in the trigger window.)
The difference is that the triggers were written to make the text appear when each of the teabags were hidden. This meant that when you reset the activity the timeline was restarting and some of the triggers were being fired at that point (and showing the text boxes).
Moving the triggers to the teabag means that the triggers only fire at the exact point the teabag is dropped (and hidden) removing the opportuity for triggers to fire at the wrong time.
Aaahh! I was making an assumption that having the slide reset to initial state, and adding a trigger on an object to jump to the same slide would negate any actions that were on that slide. Thank you David, that has been super helpful.
This discussion is closed. You can start a new discussion or contact Articulate Support.