Math problem - the higher attribute is...

IsabelleKIsabelleK Member, Sous Chef Posts: 2,807
edited March 2012 in Working with GS (Mac)
Hi!
I have a problem - I have an actor, and I need it to change its height: the bigger game.attribute is, the higher the actor becomes, and the other way: the smaller game.attribute is, the lower the actor becomes.

Can anyone help me with this? :) Thanks!

Comments

  • POMPOM Member Posts: 2,599
    edited March 2012
    Hmm ..
    Constrain self.size.height To game.attribute*10 (or any other value that works for you)
    Is this what you want?!

    Photobucket Roy
  • CloudsClouds Member Posts: 1,599
    edited March 2012
    You can simply constrain the actors height to the game.attribute (or some scale of it).

    [EDIT . . . beaten to it by Roy . . . basically do exactly what Roy said, it's as simple as that]
  • IsabelleKIsabelleK Member, Sous Chef Posts: 2,807
    Thanks guys! Obviously the easiest things are the hardests :P
  • POMPOM Member Posts: 2,599
    edited March 2012
    Thanks guys! Obviously the easiest things are the hardests :P
    You got that right , sometimes things are so simple but you just can't see them :D

    Photobucket Roy
Sign In or Register to comment.