Hi,
you need to implement the logic in a mathematical way.
I would start easy with only two sliders, each slider is not the actual controller of the value, rather, an fsm is responsible for that and the slider merely show the current value and also set it.
the BIG trick here is that if you want to control a slider value, you end up with a recursive loop if you also want to listen to the value changing event of that slider.
solution:
- don't implement the on value change event, but simply implement the drag event on the slider button, then when the user is moving the slider, you know about it, you get its current value and work you math, that will affect in turns other sliders.
does that make sense?
Bye,
Jean