Creating an educational simulation to show how sizes of shadow changes when user adjusts slider

May 22, 2024

Hi everyone, I'm trying to create a simulation to show how the height of a shadow changes when a user adjusts the distance between object and light source.

I have written in to articulate support for assistance and they have advised to change the states when slider is being adjusted. While the size of shadow can be change based on the states, the corresponding arrows representing the light rays from the torch light is different to change.

I'm writing to see if the community here has any similar experience creating such simulation and can provide help?

Please see Slide 2.1 for the scenario mentioned. Appreciate if  anyone here could help! :)

11 Replies
Judy Nollet

When you insert a slider, Storyline automatically creates a number variable to track its position. You can use the variable's value as a condition in other triggers. For example: change the state of [this object] to [this state] when Slider1 changes if Slider1=2. 

It’s worth the effort to learn about variables and trigger conditions, because they provide the real power in Storyline. Here’s more info:

Also, you could use the flashlight image as the "thumb" of the slider. That would make it more realistic. Here's the User Guide article about working with sliders: 

Judy Nollet

The attached file demonstrates how to change an object based on the position of a slider. 

The slider has 5 stops (1-5). The object has 5 custom states, with names that also go from 1 to 5. This makes it easy to match the variable value with the correct state in the triggers.

You could add triggers to change the state of as many objects as needed.

FYI: I find that it's sometimes difficult to get a slider started when in Preview. But it works fine when published.