A little over a year ago (in June of 2011), I went over the Corona Event Model, and explained exactly what events are in Corona, when they occur, and how you can “hook” into them to take advantage of some of Corona’s best features.
However, in the previous article, I kept the subject-matter focused on the built-in events associated with specific API’s that are provided out-of-the-box in Corona. What I didn’t mention is that you can define your own custom events, and have objects listen for when those events are dispatched (which you have complete control over as well).
This tutorial will walk you through defining and dispatching custom events, so you can begin applying the knowledge to your own games and apps.
This week’s tutorial is going to be a little different. Rather than go over yet another awesome Corona feature, I’ll instead be walking you through another aspect of Corona development that’s arguably just as important (if not more important) than any one specific feature of the SDK. What you’ll be learning about today is something you’ll undoubtedly use in every single Corona project you work on, and that is of course is the Corona SDK API Reference.
NOTE: This tutorial is outdated and has been replaced by the Masking Images guide.
When developing applications, it’s important to handle scenarios that occur as a result of the user interacting with your game in as many different ways possible. It’s equally as important to handle scenarios that occur as a result of “system” events, whether they are explicitly triggered by the user or not. Things that immediately come […]
In this tutorial we discuss LuaFileSystem (LFS), a popular Lua library which allows you to perform common file system activities that can’t normally be done in plain Lua.
If you know what events are Corona (if you don’t, you should start here), then you know that they allow you to “do something” whenever a specific action that corresponds to an event occurs. You can even define your own actions, and dispatch custom events whenever it is appropriate for your app. However, no events […]
One of the two most-requested items in regards to the Storyboard API was the ability to pass custom data between scenes as you switched between them, and also some kind of “pop up” feature, where a scene can be loaded and displayed above another scene, leaving the currently active scene intact. The documentation for both […]
Lights… camera… CUT! Corona’s Storyboard API has been around for a while now, but there is still some confusion among the community in regards to how to use it. And while I’m sure that my recent explanation of the various events associated with the Storyboard API certainly helped a little, perhaps an explanation of the […]
In this tutorial, learn all about accessing data in an SQLite database, from creation of the database to adding/updating records to retrieving data.
Today, I’m going to explain the individual events that drive the entire Storyboard API, and then show you how all the different events fit together. If you previously had trouble using the Storyboard API due to a lack of understanding of scene events, this resource should clear things up for you. I’ll begin by explaining […]