Sliding Along with the Force
A few weeks ago I was delivering a Storyline 2 session in Brisbane and we were looking at the slider interaction and how you can use a slider to change the state of an object and also use it to show layers. In the change of state example we were looking at, you slide the thumb along the track and the colour of an image changes. One of the participants asked if it were possible to change the colour of the thumb to match the colour of the image and my response was “I’m not sure, I haven’t tried that before but let’s check it out and see if it can be done”.
So, I clicked on the slider and went to the states area and I was pleasantly surprised to see that sliders have ‘states’. As it turns out, you can add new slider states and then format the slider for your new states (in our class example, I could change the thumb colour to match the image colour). Cool! I was also happy that person asked this question or I may never have known about slider states!
Flashback to late 2015, and David Anderson created an ELH Challenge to coincide with the release of the new Star Wars movie, The Force Awakens. E-Learning Heroes Challenge #110 – Awaken Your E-Learning Force. The brief was to build a Star Wars-themed interaction, this week your challenge is.
Sometimes ideas for challenge demos come to me quickly but sometimes I need to percolate ideas in my subconscious for a while and this was one of those challenges. I did have some illustrated Star Wars characters that I wanted to use for the demo and an idea of a trivia type interaction, just no solid idea for bringing them together in a different way.
Jumping back to the present and after I discovered that sliders have states, I thought that’s it! I could create a slider state for each character (six in total) and I could also have a question for each character to correspond with the change in image.
So this is what I did:
I inserted a slider and in the Thumb Fill area, filled it with a picture of my first character. I had to play around with the sizing of the thumb so that it wasn’t too small. For the track, I chose no fill and no outline which made it transparent. Then I created a new state for each character and named each state to correspond with the character:
The thumb picture changes using a change of state trigger (one for each character):
Each of the questions is built on a layer:
I used shapes for my questions and feedback with 40% transparency and shapes for my answers choices too. As there was only one correct answer, I grouped the choices in a button set which only allows one answer to be selected at a time. The correct/incorrect feedback boxes are on this layer too and they both start as ‘hidden’ and change state to normal depending on which answer is chosen. This is what it looks like for the Stormtrooper layer:
To save some time, once I had the first layer working the way I wanted, I duplicated it and then changed the information and adjusted the triggers. A show layer trigger based on the slider position makes each layer show. So as you slide the thumb along, the picture changes to a different character and a question for that character is also shown along with some feedback (and where possible, I used a quote from that character from one of the movies).
You can try the demo yourself by clicking on the image below:
Let me know what you think and you can see all of my ELH Challenge entries on My Portfolio page.