Scale Object with a Slider

VoidedSkyVoidedSky Member Posts: 1,095
edited November -1 in Working with GS (Mac)
Hi all, I am working on my new game, and it has a slider. The slider can rotate the object when the button is pressed, by multiplying the value from the slider by 360. It works perfectly. But now I would like to do this with the scale of an object. Like this: " Constrain self.height to self.height*game.slidervalue " and the same to the width. This doesn't seem to work, the object disappears! Is there an easier way to do this, and should I not multiply the width and height by the scale value? Thanks ahead of time.
~CTM

Comments

  • VoidedSkyVoidedSky Member Posts: 1,095
    Anyone?
  • A3MGA3MG Member Posts: 152
    What is the scale of the slider? 1 - 10? 1 - 100? 1-1000? Try adding the slidervalue to see if you can get it to work.

    If the slider scale is large, multiplying will make the object get HUGE fast.

    - davey
  • VoidedSkyVoidedSky Member Posts: 1,095
    When i move the slider it gives me a value between 0 and 1, but i don't know how to implement that to be able to scale
  • A3MGA3MG Member Posts: 152
    Sent email with example.
  • VoidedSkyVoidedSky Member Posts: 1,095
    Thanks a ton!
  • VoidedSkyVoidedSky Member Posts: 1,095
    Its a great example, but it isn't going into my game very well, is there a way that I could change the 0 to 1 value to a scale number, like .5 to 3 (times bigger). EX: when slider value = 0 the scale =.5, and when the slider =1, then the scale = 3, then all of the slider values between that would correspond, so the slider value of .5 would = 1.5. I hope you understand me, i will clarify if u need me to. Thanks again!
  • VoidedSkyVoidedSky Member Posts: 1,095
    anyone?
Sign In or Register to comment.