Math problem - the higher attribute is...
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!
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?

Comments
Constrain self.size.height To game.attribute*10 (or any other value that works for you)
Is this what you want?!
[EDIT . . . beaten to it by Roy . . . basically do exactly what Roy said, it's as simple as that]