Image Sheets, Image Groups, and Sprites

Posted by & filed under Daily Build, Tutorials.

If you’ve seen the daily builds page since last Friday, you probably noticed the HUGE list of new graphics related changes that were pushed in with build 2012.759. Today, I’m going to explain what some of the new additions are, as well as walk you through how to use them in your projects. There’s a lot to go over, so be prepared to pay close attention, because the things I’ll be covering today can get a little confusing if you merely skim over the content. Unlike last week’s “back to the basics” post covering Corona Display Groups, today’s tutorial is a little more in the intermediate territory. Because some of today’s topics are completely brand new and don’t have any corresponding documentation yet, as a

Corona Display Groups 101

Posted by & filed under Tutorials.

This week, I’m going “back to the basics” to cover a topic that most experienced Corona developers probably take for granted, but is nonetheless a fundamental aspect of Corona development that cannot be overlooked if you are serious about creating great apps. And that topic is… you guessed it: Corona Display Groups. And for those of you who are a little more experienced, and have worked with groups a lot, I encourage you to still stick around—there’s a chance you could still learn something new.

Understanding Corona’s enterFrame Event

Posted by & filed under Tutorials.

Although there has been a previous tutorial on the subject of Corona’s Event Model, today I’m going to cover a specific one: the enterFrame event. Unlike others, such as touch events and accelerometer events, it’s not as apparent exactly what the purpose of an enterFrame event is—so if you’re new to Corona its easy to completely bypass it and possibly never learn of its purpose. More importantly, enterFrame events can be dangerous for your app if you’re at all undereducated in their purpose and usage.

Reading and Writing Files in Corona

Posted by & filed under Tutorials.

Due to its extremely wide range of use-cases, one of the most common tasks that you’ll perform when developing apps is reading and writing files (e.g. saving and loading data). So that—as you’ve undoubtedly guessed by now—is exactly the topic I’ll be covering in this week’s “Tutorial Tuesday”. I’ll be going over basic reading and writing files in Corona, some of the common IO “modes” you’ll be using, Corona’s system directory constants, and even share a function that you can use in your own projects to make the whole process even easier for you. There are countless reasons why your app may need to read and/or write a file, so I can’t possibly list them all here, but here are a few “use cases” to

Tutorial: Text Input with Native UI

Posted by & filed under Tutorials.

With the rise in dominance of mobile platforms for personal computing, the ability for developers to create apps that allow users to input text—whether it’s just a single line for a few words or long-form notes—is more important than ever (especially for those creating non-game apps). Fortunately, Corona SDK makes it easy for developers to take advantage of two truly native text input widgets: Text Fields and Text Boxes. So today, I’ll be going over the differences between text fields and text boxes, situations where you’d use one over the other, share some tips, and also walk you through the creation of a simple note app that will allow you to write, save, and load a note! Let’s get started…

Creating Lists with the TableView Widget

Posted by & filed under Tutorials.

With the relatively recent update to the widget library in build 2012.721, we released a tutorial on how to use the revamped ScrollView widget, but that’s not the only thing that was updated in Corona’s widget API. If you’ve been paying close attention to the daily build logs, you probably noticed there have been several updates to the TableView widget since then. So for this week’s “Tutorial Tuesday”, I’ll be walking you through the creation one of the most commonly seen user-interface elements across all mobile apps: lists. No matter what kind of app you’re developing, chances are good that one of these days, you’re going to need to display information in some kind of list. Thankfully, Corona’s TableView widget is perfectly suited for just

From zero to ‘Angry Birds’ in 30 minutes

Posted by & filed under Tutorials.

You wouldn’t mind if we put up two tutorials for Tutorial Tuesday, would ya? Below is a presentation given by coding extraordinaire Seb Lee-Delisle at the Update 2011 conference in the UK late last year. We were humbled when we saw that Seb chose Corona SDK as his weapon of choice for his demo. Be sure to let Seb know what you think on Twitter at @seb_ly. Thanks for the awesome demo, Seb!

Using the New Native Web and Video API’s

Posted by & filed under Daily Build, Tutorials.

As mentioned previously, there are two brand new APIs available for creating native webView objects, as well as native video objects. And for this week’s “Tutorial Tuesday”, I’m going to show you exactly how to use them. For quite some time now, Corona SDK has been capable of displaying web pages (see Web Popups), as well as video playback, so on the surface, it may seem like these “new” APIs are redundant. Fortunately, that is not the case because these new APIs provide solutions to some of the (often deal-breaking) limitations of web popups and video playback features of old. Web Views vs. Web Popups These two are very similar, but there are some differences in usage as well as functionality. The most notable differences

Tutorial: Game Center Integration (iOS)

Posted by & filed under Daily Build, Tutorials.

With the highly anticipated Game Center feature becoming available to download as of daily build 2012.725, it’s time we show you how to use it. So that’s exactly what this week’s edition of “Tutorial Tuesday” is goint to be all about. Additionally, towards the end of the tutorial you’ll be given the link to download the “Corona GCTapper” sample app that was debuted in last week’s teaser video (which will also be included in the next daily build—the one that comes after 2012.726). Since the Game Center feature is just an extension of the existing gameNetwork API, there’s no need to go over every single available request you can send to Game Center—you can view the updated gameNetwork init(), request(), and show() documentation for that.

New, More Flexible ScrollView Widget

Posted by & filed under Daily Build, Tutorials.

With a recent blog post and plenty of discussion on how suitable Corona is for business apps, I thought it would be fitting to write a tutorial on one of the most commonly used Corona user interface widgets, and that is, the scrollView. NOTE: The widget API is available to all users, but some of the new features described in this blog post (such as horizontal scrolling) were just recently added. To ensure everything in this tutorial works as expected, please download the latest Daily Build before continuing.