playMaker

Author Topic: How to change a slider value and have it affect another slider? [SOLVED]  (Read 4404 times)

Adam Z

  • Full Member
  • ***
  • Posts: 207
I have two sliders that are set to 0.5.  What I would like to do is have the sliders affect each other. As an example; say I change one slider to .75, I would like the other to be at .25, etc.

Any thoughts on how to set that up?  Thanks!
« Last Edit: October 06, 2016, 06:04:22 PM by Adam Z »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7614
    • jinxtergames
Re: How to change a slider value and have it affect another slider?
« Reply #1 on: October 20, 2015, 03:00:19 PM »
Hi,
Maybe you can use a float operator and do 1 minus "slider 1" value and then set the result to slider 2?

If these are Ugui sliders there are ugui get/set slider actions to get/set the values.

Adam Z

  • Full Member
  • ***
  • Posts: 207
Re: How to change a slider value and have it affect another slider?
« Reply #2 on: October 05, 2016, 02:32:39 PM »
I still can't get this to work. Does anyone else have a suggestion?  Thanks.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7614
    • jinxtergames
Re: How to change a slider value and have it affect another slider?
« Reply #3 on: October 05, 2016, 06:43:17 PM »
Hi,
I will try to make a sample tomorrow.

Adam Z

  • Full Member
  • ***
  • Posts: 207
Re: How to change a slider value and have it affect another slider?
« Reply #4 on: October 05, 2016, 06:48:20 PM »
Hi,
I will try to make a sample tomorrow.

Thanks, I wouls appreciate it!

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7614
    • jinxtergames
Re: How to change a slider value and have it affect another slider?
« Reply #5 on: October 05, 2016, 06:59:57 PM »
Hi,
I have a sample actually but there is a bug on one of the ugui actions.

But it is working, only the states are swapping which should not happen.

I will send a bug report to jean tomorrow.

I have attached the sample Scene.
You need to have ugui proxy full installed from the Ecosystem

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7614
    • jinxtergames
Re: How to change a slider value and have it affect another slider?
« Reply #6 on: October 06, 2016, 06:19:38 AM »
Hi,
The Action works as it should but it is named wrongly, it should be named :
uGui Slider On Value Changed Event
I will report it to jean.

Adam Z

  • Full Member
  • ***
  • Posts: 207
Re: How to change a slider value and have it affect another slider?
« Reply #7 on: October 06, 2016, 06:03:54 PM »
Hi,
I have a sample actually but there is a bug on one of the ugui actions.

But it is working, only the states are swapping which should not happen.

I will send a bug report to jean tomorrow.

I have attached the sample Scene.
You need to have ugui proxy full installed from the Ecosystem

Thats exactly what I needed. thanks!