Forum Discussion
Andrianina
2 years agoCommunity Member
Advent Calendar in Storyline
Hello everyone, I'm working on an advent calendar in Articulate Storyline with 24 pockets, each meant to unlock on its corresponding day in December (e.g., pocket 1 unlocks on December 1st, pocket 2...
CatherineG
2 years agoCommunity Member
Hi!
My first thought would be to use some really simply JavaScript when the timeline starts to check the date and unlock accordingly:
//Get the Storyline Player
let player = GetPlayer();
//Get the day and month
let currentTime = new Date();
let day = currentTime.getDate();
let month = currentTime.getMonth() + 1; //add 1 because months start at 0, so january = 0
//put the data into the Storyline variables
player.SetVar("day", day);
player.SetVar("month", month);
Make sure to make number variables named day and month in your Storyline file then simply have your pockets change state to normal when the timeline starts on the slide if month = 12 and if day is greater than or equal to the corresponding day.
Related Content
- 2 years ago
- 10 months ago
- 11 months ago
- 9 months ago