[Resolved] Zoom an Object with respect to time

I want to Zoom an Object after it is clicked.

Scenario:

A man is standing outside a house, when you touch the image of house, it zooms w.r.t time for say 1000 milliseconds, and then the next scene takes over.

How can I make the image zoom linealry with time, after it is touched? [import]uid: 175611 topic_id: 31329 reply_id: 331329[/import]

Hello,
A single transition of xScale and yScale will do the trick, and it’s already time based. You can also use “easing” methods so the zoom slows down or speeds up toward its end point… this can really make it look more natural.

Transitions also have the “onComplete” call which you can use to trigger the next scene or whatever else when the transition finishes.

http://docs.coronalabs.com/api/library/transition/to.html

Brent [import]uid: 9747 topic_id: 31329 reply_id: 125232[/import]

That was pretty simple. Thanks a lot for the speedy response. :slight_smile: [import]uid: 175611 topic_id: 31329 reply_id: 125255[/import]

Hello,
A single transition of xScale and yScale will do the trick, and it’s already time based. You can also use “easing” methods so the zoom slows down or speeds up toward its end point… this can really make it look more natural.

Transitions also have the “onComplete” call which you can use to trigger the next scene or whatever else when the transition finishes.

http://docs.coronalabs.com/api/library/transition/to.html

Brent [import]uid: 9747 topic_id: 31329 reply_id: 125232[/import]

That was pretty simple. Thanks a lot for the speedy response. :slight_smile: [import]uid: 175611 topic_id: 31329 reply_id: 125255[/import]