Trying to constrain actor width to actor Y position
So basically I want to constrain the actors width and height to the actors Y position so that when the actor moves up on the screen the actor gets smaller. This is what I have. The problem is, it doesn't stop getting smaller when the actor stops moving up. It just continues to get smaller till it disappears
Constrain
(self.size.width) to (self.size.width-(self.position.y/20))
Constrain
(self.size.width) to (self.size.width-(self.position.y/20))
Comments
(self.size.width-(self.position.y/20))
with
(75-(self.position.y/20))
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User