Forum Discussion
AndrielleLee-cd
6 months agoCommunity Member
Creating an educational simulation to show how sizes of shadow changes when user adjusts slider
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 ...
JudyNollet
6 months agoSuper Hero
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.