Move Objects Around the Screen

Frame by Frame

It’s sometime necessary to move objects across the screen With full control. Transitions are great, but they aren’t the answer for everything. I’ll teach you how to perform a code of your own every time the system displays a frame on the screen. This will give you full control over movements on the screen.

Keep in mind, however, that performing a code 60 times per second is bad for the app’s performance. So, any time you can use a simple event or a transition instead, your app will thank you.

What Is a Frame?

While it’s not obvious when using an advanced SDK like Corona SDK, every system is refreshing its display many times per second—around 60! A refresh is called a frame. Perhaps you’ve ...

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.