Category: Tutorials, Tips and Demos

Tutorial: New Widgets, Part 2

After much anticipation, we’ve finally released the majority of new Corona widgets! All new widgets share a common trait: each has been written atop a new foundation that is more flexible and stable. Today’s tutorial outlines five of the new widgets — read further to learn how to implement them in your apps.

READ MORE

Using Email Attachments (iOS)

Would you like to open an email attachment with your own custom extension directly in your iOS app? Today’s guest tutorial walks you through the essential steps, including the necessary additions to “build.settings” and the functions required to load an email attachment into your app’s local directory. Read further to learn how!

READ MORE

Tutorial: Implementing Pinch-Zoom-Rotate

Many apps have a huge feature set but still function primarily with a single point of input: buttons, touch-drags, individual swipe actions, etc. However, even the most basic interface can benefit from the multitouch capabilities of modern devices; for example, zoom in and out on a background, scale/rotate objects and layers, etc. Today’s tutorial walks you through a full “pinch-zoom-rotate” methodology and includes a working module that you can incorporate into your own app.

READ MORE

Tutorial: Utilizing time and dates

Working with “time” in any programming language can be confusing. Furthermore, it’s not always obvious what various time and date functions mean and how they behave. This week’s tutorial discusses some of these issues and shows you how to work with things like date calculations, time zones, and date formatting.

READ MORE

Tutorial: Multi-element physics bodies

This week’s tutorial steps you through some advanced tactics involving multi-element physics bodies. Mutli-element bodies possess some valuable traits that joint-assembled bodies don’t — but they also present some quirks and hurdles. Learn how to work around some of those in your physics-based apps!

READ MORE

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.

READ MORE