How to stop growth behavior?

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

Answers

  • ralphbugsralphbugs Member Posts: 39
    edited June 2014

    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.

  • ralphbugsralphbugs Member Posts: 39
    edited June 2014

    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!

Sign In or Register to comment.