Changing Actors size

ApexApex Member, PRO Posts: 56
I want make my actors size proportionally larger when it goes further from center. How can I do it?

P.S Happy new year!

Best Answer

  • tatiangtatiang Posts: 11,949
    edited January 2013 Accepted Answer
    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

Sign In or Register to comment.