Changing Actor's Constraints
I made a volume slider that is constraint to specific x and y locations of a settings panel, which starts off screen and once the settings button is pressed it moves on screen. What I am trying to do is have it that when I move the volume slider to another x position on the settings panel (to change the volume), that the slider's x constraint changes to that location and saves it.
How could I manage that?
Please & Thank You!!
How could I manage that?
Please & Thank You!!
Comments
Thanks!
@carlblanchet
Hi, there's a number of volume slider demos about and one of the best is by TSB. So checkout Volume Slider on @tshirtbooth 's website gshelper.com. That's sure to get you up and running with your slider stuff.
As for saving, make a game real attribute, let's call it VolSave. Add another Rule,
When touch is released
Change Attribute VolSave to self.Position.x
Save Attribute VolSave
Hope it all works out for you.