Forum Discussion
BilliJoThompson
4 years agoCommunity Member
Variable reference on slider will not display -1
Hi! I am working with sliders for the first time. In my first Story, I have it all set up the way I want it for the first 3 slides, but I kept running into the problem of -1 not showing up as the v...
JoeFrancis
4 years agoCommunity Member
Okay, that part is easy to adjust. Change the scale from [-16 to +16] to [0 to 32]. Create a new numeric variable, called numSliderPos. Insert it as a reference on-screen. In the Triggers window, we need 2 new triggers:
Set numSliderPos to variable Slider3
When Slider3 changes
Subtract value 16 from numSliderPos
When Slider3 changes
As the slider moves, the on-screen variable changes, preserving the -16 to +16 requirement. Curiously, I can now get -1 when I move the button with the mouse.