Tutorial: New Widgets, Part 1

The Widgets 2.0 library is now available to users with access to Daily Builds. All new widgets share a common trait: each has been written atop a new foundation that is more flexible and stable. Today’s tutorial discusses two of these: “switch” and “segmented control”. Please read further to learn how these new widgets can enhance the user interface of your app.

Tutorial: Creative Effects Using Blend Modes

Today’s tutorial covers Corona blend modes using the “object.blendMode” API, and illustrates how to use them for creative visual effects within your app. Whether you want to achieve a glowing effect like fire or a subtle shadow effect, blend modes can be a powerful tool in your Corona arsenal. This tutorial steps you through the three Corona blend modes, the effect of each, and the technical algorithms involved.

Tutorial: Dynamically-Optimized Sprites

Today’s guest tutorial comes to you courtesy of Omid Ahourai, an indie game developer who goes by the alias “ArdentKid.” He’s been working with Corona SDK for over two years and will soon release his first highly-anticipated game, “Balloon Bazooka.” Please check out his work and blog at www.ardentkid.com.

Tutorial: Animated Sprites and Methods

Tuesday Tutorials are back! Today’s tutorial is from Brent Sorrentino, a Corona Ambassador based in northern Colorado. Brent has been an active part of the Corona community for almost two years. He is a freelance travel photographer, Corona developer, and graphic designer. In addition to using Corona to develop his own apps, he regularly lends a hand in the forums, helping other developers solve coding issues.

Corona Guidelines: iPhone 5 and iOS6 (Preliminary)

The iPhone 5 is looking like it will be the fastest-selling gadget of all time. So let’s talk about what you need to do to prepare your Corona apps for the iPhone 5 and iOS6.

One of the biggies we’ll cover is what you’ll need to do to make your Corona app handle the new 16:9 aspect ratio, or what we’re calling “tall apps” (as opposed to the shorter “traditional apps” designed for the iPhone 3 and iPhone 4).

Tutorial: External Modules in Corona

There’s often confusion as to what exactly happens when external modules are “required” into your code, which leads to further confusion and unexpected behavior when it comes to things such as Storyboard Scenes or even custom modules of your own.

Today I’m going to guide you through a series of exercises (with explanations) that should illustrate exactly how modules work in Lua, so you get a full understanding of when the code in your modules is executed, including what code is not run when you call the built-in require() function.

Storyboard Basic Usage

The Storyboard API, while very powerful and flexible, can admittedly seem very confusing to new users, and especially those who are coming from a 3rd party scene management library, such as the Director Class.

Today, I’m going to walk you through the most basic storyboard usage for those who want the Storyboard API to be as simple, and work similarly to, the Director Class. While packed full of useful advanced features, not all of these features have to be used (or even understood at first). This tutorial will show you how to get up and running with the Storyboard API as quickly and easily as possible.

Reacting to Low Memory Warnings

Whenever your app is taking too much memory, the OS will first issue what’s called a “low memory warning” to give you a chance to do something—such as free up memory—before your app is forced to quit. If your app is forced to quit, from your user’s perspective, your app will have crashed and quit (possibly causing a great deal of frustration).

In today’s tutorial, I’ll show you how to respond to these low memory warnings, and recommend things you might do to prevent crashes from occurring (and possibly even preventing low memory warnings altogether).

NOTE: Low memory warnings are currently unreliable on the Android platform, so this tutorial will focus mostly on iOS, though the preventative measures will apply to all platforms.