fig0023

Part 3Move

Move Objects Around the Screen

Now that you’re able to display some images and shapes, what about adding some movement?

While there is a simple way to move objects automatically using Corona SDK transitions, it would be great to be able to move the objects relative to user events like touches on the screen. For this purpose we’ll introduce a new concept here: events.

Using Transitions to Move and Animate Objects

Transitions are a powerful way to move and animate objects over the screen. Transitions enable us to animate a display object numeric property from one value to another, in a determined time period. It’s also defined ...

Get Create 2D Mobile Games with Corona SDK now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.