Problem with slider control between slides.
Jan 14, 2022
By
Jose Antonio
Hi, there are 2 same slides in my scene.
There is a slider that changes the states of "A button" on slide 1.
There is a numeric variable called "move" that updates itself with the value of the variable slidercontrol1 (create by default when add slider) when the slider moves.
The structure of the second slide is the same, and the slider is referenced to slidercontrol1, and the problem is as follows: I move the slider on slide 1 and A button changes to state 4 (for example), but when I jump to slide 2, B button appears in the Normal state. I need the B button to appears in state 4 (like slide 1), but it seems that the "move" variant is reset when changing slides.
I selected the option "Resume saved state" in the slides properties.
3 Replies
Update: when I switch slides, I can see that the slider bar keeps its position, so the variable "move" works. However, the states of the B Button are not synchronized with the slider.
Hi, Jose.
Thank you for reaching out!
I'm not sure I completely understand the question, but it sounds like you want to sync two sliders (when one moves in slide one, the second also moves in slide two), which should also change the state of a button.
On your first slide, how are you changing the state of the button? Is it through a trigger that calls for "When the variable changes"? If so, the issue on the second slide might be that the variable doesn't change when the timeline starts.
If you assign the value of the variable slider1 to the variable slider2 when the timeline starts on the second slide, it should work as expected:
I hope this helps!
Thank you very much, Maria, that solution worked!