How to stop growth behavior?
ralphbugs
Member Posts: 39
I apply growth behavior on an actor but it won't stop growing. If i use timer and destroy behavior after growth, the actor will be destroyed entirely from the game. How can I put a stop to growth?
Best Answer
-
colander Posts: 1,610
Not sure what you are trying to do. I have attached a project see if it helps. You could also use the Interpolate behaviour to do this.
Answers
Ah, instead of using growth, I use constraint attribute to control the width and height of the actor. Using this formula from buzzy bee tutorial on tutplus, i manage to animate the width and height.
10*sin( self.Time *300)+180
But if someone has the answer on how to put a stop to growth behavior, please reply for future references.
Hi Colander,
Initially im trying to make a graphic which is 'game Over' growing when its game over. Its almost like the one in the project you attached but that one will grow when its being pressed.
But I've found a better way for that by using constraint attribute. The game over graphic can now growing and shrinking. I've attached a project file for other user to use.
Thanks!