# 2 sliders counting the opposite way

Hi heroes,

I am having a little trouble figuring out an easy way to have 2 sliders, one counting from 10 to 30 and the other counting from 70 to 90. What I want is when one slider is dragged from 10 to 30 the result of the other slider would be that it goes from 90 to 70. I want this in steps of 1. They only way I can think of is to make 30 triggers to tell the second slider to be for example 73 when the first slider is 27. This seems time consuming. Is there an easier way?

Thanks

## 7 Replies

Have a look at the attached and see if that's what you wanted. Dragging slider 1 impacts slider 2 in reverse. It does take a few triggers but at least it's not 30!

SliderMove_MH.storyGenius! Thank you so much.

I have another one for you - This time it is with a slider going from 10 to 30 in steps of 1, and a slider going from 0 to 10 in steps of 0.5. Is there a way to make the second slider increase/decrease when moving the first slider?

Thanks

Have a look at the attached. I adjusted the steps for slider 2 and changed the math slightly. Hope that's what you wanted.

SliderMove_MHV2.storyThank you so much Michael. You must be a math hero too! Do you have a formula to work this out? One that I could reuse if I have to make other sliders like this one day? How do you figure this out?

Thanks again

You can see the calculations I applied in the triggers in the .story file. They will change, depending on the sliders involved (e.g. total number of steps, step width, etc.) and how they should interact. Also if you have an offset, for example your slider 1 starts at 10, not 0, that needs to be accounted for.

Elegant solution, Michael! I’m saving this one for future reference.