Forum Discussion
numeric variable
Hi! I'm trying to achieve a similar effect, but it's not functioning as I anticipate it should. I have a trigger set on my slide to add a count when the timeline starts if a variable is false. When the learner clicks an object on the slide, it's set to change the variable to true before it advances to the next slide. However, when the learner revisits the slide, it's still adding a count. I'm not sure what I'm doing wrong. I've tried setting the slide to reset to initial state and resume saved state in case that was the issue, but it adds a count again regardless. I've included a screenshot of my trigger panel. Any assistance anyone can offer will be much appreciated!
- MikeEnders8 years agoStaff
Hi Lauren,
I'd have to see the file to diagnose (feel free to post it here if you're able to). The way the triggers look, it seems like it should work.
My first thought is...that "FirstMove" variable. Is that only being used for this slide? So it's not being set back to "False" for some reason on a subsequent slide? Because if it were being set to "False" on the next slide then a return to this slide would cause the count to continue. Ultimately, in this setup, you'd need a unique True False variable for each slide.
If that's not the issue, it might help to set up a variable reference on the slide to make sure that the variable is, indeed, changing. To do so, add a text box to this slide. And then via the insert tab, click "reference" and select the FirstMove variable. This will create a %FirstMove% within the text box (note: you can also just type that into a text box). I'd also create this same exact reference %FirstMove% on the next slide that you're traveling to. So now when you preview your project, you'll see what's going on with that variable. Does it flip to "True" when you advance to that next slide? And when you return, does it stay "True"? This will help you to diagnose the situation in more detail.
I hope this helps! And please feel free to post your file.
Mike
- LaurenParker-538 years agoCommunity Member
Thank you, Mike! My project is attached.
- MikeEnders8 years agoStaff
Hi Lauren,
I checked your file and at least that opening slide is working as expected.
I did a quick walkthrough here to show you.
I hope this helps!
Mike
Related Content
- 10 months ago
- 10 months ago
- 10 months ago
- 10 months ago
- 10 months ago