Slide and Layer "revisited" states

Jun 13, 2014

I have a box on the "base" layer, with 2 states: normal and visited.  Normal state has a blue fill, visited state has a green fill.  Trigger is set to change state to visited state upon timeline end.  Slide properties are set to "reset to initial state" when revisiting.  Therefore, this box should reset to the normal state of blue each time the user comes back to this page.

This box is on the "progress" layer and has 2 states: normal and visited.  Normal state has a blue fill, visited state has a red fill.  Trigger is set to change state to visited state upon timeline end.  Layer settings are set to "resume saved state" when revisiting.  Therefore, this box should remain in the visited state of red each time the user comes back to this page.

I have tried adding a variable "SlideViewed" setting it to default of "False" and then creating a trigger to change it to "true" when timeline ends.  Tried adding this condition to my trigger that changes the state of the button, but then it changes the box on the NEXT slide!!!

No matter what I do, I can't seem to get this to work the way I want it to.  I'm sure it is something simple, but I am completely missing it.  Any help would be appreciated.  I have attached a sample of what I'm trying to do, so that you can see the triggers, variables, etc.  

3 Replies
Bobbi Bailey

Alex,

I am most definitely open to alternatives!  What I am actually trying to get to is to calculate a percent complete to show the user his/her progress.  I just used the boxes as a simplified method to visually see how it should (and isn't) working.

I can get the variables and calculations to work, as long as the user does NOT revisit a slide.  However, when they do, it adds that view into the calculation and messes it all up. The slides have to be set to "return to initial state" when the user revisits that slide because we do not allow the seekbar to be added (otherwise users would fast-forward through regulatory compliance content)... so if a user needs to revisit a slide (for review purposes) then if its not set to "return to initial state", the slide will be at the end of the timeline. (and I prefer to not put a "replay slide" button on the stage... of course, even if I did, it would still mess with the calculations i'm trying to achieve).

I've uploaded another copy of the .story file, which contains the percentage variables and calculations I am trying to use.

Alexandros Anoyatis

You will probably be better off using 1 T/F variable per slide to store completed status for this to work as expected, then make the calculation separately from 0 every time, maybe on the master layout.

For example, if you have 5 slides you could create 5 T/F variables (01Complete,02Complete etc) initially set to false, then automatically adjust each to true when the appropriate slide or slide layer ends. For the calculation you could place a layer on the master layout which would reset progress value to zero, then add 1 to each xxComplete variable that is set to True.

Alternatively, if you haven't done much development on your course yet and you're not making use of Articulate Mobile Player for the iPad, you could download this created by yours truly and make some necessary adjustments.

I hope some of this helps,
Alex

This discussion is closed. You can start a new discussion or contact Articulate Support.