Variables not keeping data
Aug 15, 2017
Hi,
I'm having an issue with variables not keeping data when jumping scenes.
I've created a slide where the user reads a short description about a topic, once finished they will have to click the preview button which will direct them to another scene timeline.
First slide I have a continue button which acts as a next slide with a variable (DPRAW with a value of 1) now that button is hidden when timeline starts with a condition of (if DPRAW is equal to 1). So when the user clicks the button preview I added a trigger which subtracts a value of 1 to DPRAW which will allow the continue button to appear.
When you click on preview button the user is directed to another scene where the interactive interface is and then they can click a close button which will direct them back to the original slide.
The issue I'm having is when the user returns back to the original slide the variable doesn't change. Is this due to the different scenes, as variable don't work when changing scenes?
If you need a better explanation please let me know.
Thanks,
Seb
3 Replies
Hi there Seb,
Variable data should carry over across scenes. I'd be interested in taking a closer look at the triggers you set up to adjust the value of the variable. Would you mind sharing your file with us?
You can attach it directly to this discussion thread by using the ADD ATTACHMENT button. Thanks!
Hi Alyssa,
Thanks for the reply.
I've attached the file I'm working on. The slide I'm having the issue on is 1.8 DPRAW.
Whats supposed to happen is the user clicks preview and the variable should subtract 1 and when the issue returns back to that slide the continue button should be visible.
If you need more information please let me know.
Thanks,
Seb
Hi Seb
I haven't tested the file but looking at the triggers you may need to re-order them. Trigger order is very important...so your jump to slide triggers execute first and the variable trigger doesn't because you have already left the slide.
Try reordering them
This discussion is closed. You can start a new discussion or contact Articulate Support.