Changing Actors size
I want make my actors size proportionally larger when it goes further from center. How can I do it?
P.S Happy new year!
P.S Happy new year!
Best Answer
-
tatiang Posts: 11,949
Constrain self.size.width to magnitude(self.position.X-game.centerX,self.position.Y-game.centerY)/10+game.minimumWidth
Constrain self.size.height to magnitude(self.position.X-game.centerX,self.position.Y-game.centerY)/10+game.minimumHeight
A lot of my math is guess-and-check, so if that doesn't work for you, play around with the divisor (/10).New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Answers