Constrain My Slider To A Value

robert.mccarthyrobert.mccarthy Member Posts: 165
edited July 2012 in Working with GS (Mac)
Hi All,

I have implemented a slider as per the video tshitbooth posted earlier this year.

All works great, moving the slider changes my global attribute.

However, the global attribute it changes CAN also be changed by another actor.

Now, the problem I am having, is that when the global attribute is changed by the other actor I want the slider to update too.

So, I move a slider to 5 and this changes my global. Lets say I have another slider changing the same global attribute, as I slide it I want the original slider to update as I move it.

Any ideas would be a help!!! :)

Thanks,

Rob

Best Answer

  • simo103simo103 Posts: 1,331
    Accepted Answer
    @robert.mccarthy ... I would do a Game attribute.SecondSliderActive is touched change to true. Then on 1st sider put when secondSliderActive is true constrain self.positionX to Global variable.
Sign In or Register to comment.