Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Adam Z on October 20, 2015, 11:59:46 AM

Title: How to change a slider value and have it affect another slider? [SOLVED]
Post by: Adam Z on October 20, 2015, 11:59:46 AM
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!
Title: Re: How to change a slider value and have it affect another slider?
Post by: djaydino 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.
Title: Re: How to change a slider value and have it affect another slider?
Post by: Adam Z on October 05, 2016, 02:32:39 PM
I still can't get this to work. Does anyone else have a suggestion?  Thanks.
Title: Re: How to change a slider value and have it affect another slider?
Post by: djaydino on October 05, 2016, 06:43:17 PM
Hi,
I will try to make a sample tomorrow.
Title: Re: How to change a slider value and have it affect another slider?
Post by: Adam Z on October 05, 2016, 06:48:20 PM
Hi,
I will try to make a sample tomorrow.

Thanks, I wouls appreciate it!
Title: Re: How to change a slider value and have it affect another slider?
Post by: djaydino 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 (https://hutonggames.fogbugz.com/default.asp?W1181)
Title: Re: How to change a slider value and have it affect another slider?
Post by: djaydino 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.
Title: Re: How to change a slider value and have it affect another slider?
Post by: Adam Z 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 (https://hutonggames.fogbugz.com/default.asp?W1181)

Thats exactly what I needed. thanks!