Changing Actor's Constraints

carlblanchetcarlblanchet Member Posts: 755
edited August 2012 in Working with GS (Mac)
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!! :)

Comments

  • carlblanchetcarlblanchet Member Posts: 755
    This might not be super clear, so if any more information is required, please ask.
    Thanks!
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598

    @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.
  • carlblanchetcarlblanchet Member Posts: 755
    Thanks for your help @gyroscope !! :)
Sign In or Register to comment.