Issue with changing states via variables
Oct 31, 2019
Hi all,
I'm trying to include a badge system in my eLearning - whereby learners can collected badges as they go along. At present I've got two slides set up:
1) Where the learner has achieved their 'Water Badge'. They need to click on the badge to collect it (whereby it goes from greyed out to colour). This then invites them to look at their 'Badge Page' which I've set up as a Lightbox.
2) The Lightbox page with all the badges. In theory, once the learner has collected their badge on the previous page, it should now be coloured on this page with 'locked' hidden.
I've tried to do this by creating a variable that changes when the learner clicks through to the Lightbox. But it's not working.
I've attached the file here. Any suggestions please? If I'm doing this a really convoluted way then please also let me know!
Thanks in advance.
5 Replies
Because the lightbox isn't active when the action you currently have as the trigger takes place, nothing changes on the slide; the slide needs to be "in focus" or "on the stage", so to speak. Change the trigger on your lightbox slide from "when variable changes" to "when timeline starts" and set the lightbox slide property when revisiting to "reset to initial state".
Now, when the lightbox slide fires (enters the stage) it will check your variables and see that it needs to change the state of the badges that have been earned.
Amazing, thanks so much Owen!
No problem. One more "trick" that you could consider adding:
Now the badge status slide is accessible from anywhere and at anytime in your course from the StoryLine player.
Thanks Owen, that's actually even more useful.
As a side issue - I've never used Lightboxes much because I can never seem to get the 'lightbox' effect of having it sit on top of the main slide the user was already on, i.e. so you can still see the original slide in the background. So essentially having it as a pop up. Instead, my lightboxes always take up the whole screen, albeit with the X in the corner. Do you have any advice here to get the proper 'pop up' effect?
You might try switching from the modern player to the classic. It is still going to show the underlying layer but it ties the X to the corner of the lightbox slide which might be closer to the effect you are looking for.
This discussion is closed. You can start a new discussion or contact Articulate Support.