click and grow

peastonpeaston Member, PRO Posts: 25
Hi Guys,
i'm working on a kids game that has several objects scattered around the screen and when the user clicks one a bubble grows out of it and moves to the center of the screen. I can get the bubble to grow when the object is clicked but i cant get it to grow from the object clicked to the center, it doesn't want to move and grow at the same time!
any clues or pointers would be greatly appreciated.
Pete

Comments

  • natzuurnatzuur Member Posts: 304
    should be as simple as:

    when touch is pressed
    interpolate width to (insert max size)
    interpolate heigth to (insert max size)
    interpolate self.position.x to (middle of screen)
    interpolate self.position.y to (middle of screen)


Sign In or Register to comment.