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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.