Problem with slider not using the variable assigned on the design tab

Jan 18, 2023

I created a slider, it automatically created a variable called Slider1. I used triggers to set Slider1 to value 0 when the timeline starts on the slide. then, I have triggers

When Slider 1 moves

- Add value 1 to Slider1

-Show layer Layer 1

... if its value = value 1

-Show layer Layer 2

... if its value = value 2

I used the variable %Slider1% to track my variable...and it does not increment as I move Slider1.  BUT, if I create a new variable Slider2, and use that in my triggers... it works, as long as I do not designate it on the Design tab as the variable.  Crazy, I know... but, I don't think this is the way it is supposed to work.

 

 

 

4 Replies
Sandeep Gadam

Hello Sarah

Since the slider's default value is set to zero at first, you don't need to assign any triggers to set its value zero. I was able to add the increment value by assigning the slider1 variable to the appropriate text box by changing your existing triggers.

If you need any additional assistance, please let me know. Please review the modified SL file that was attached for your reference.

Walt Hamilton

This is your problem:

       

When the slider moves, the variable is automatically updated. Your trigger confuses the system, and prevents it from doing anything with Slider1. The way the trigger is written, if the slider moves to 1, Layer 2 is shown. Delete it, and I think you'll see it work how it is supposed to work.