Tutorial: Advanced Random Numbers

Posted by & filed under Tutorials, Tips and Demos.

dice

Most of us have dealt with generating random numbers at some point in our app development. In this tutorial, we’ll look at the core syntax for generating random numbers, along with a “dice rolling” mechanism for more advanced use cases. Read further to learn more.


Tutorial: Advanced TableView Tactics

Posted by & filed under Tutorials, Tips and Demos.

tableview-feat

In the mobile app world, table views, or “list views,” are based on a paradigm where information is presented to the user in a series of single-column rows. In this tutorial, we’re going to look more deeply at this powerful tool in the widget repository and discuss how to implement some advanced features with just a little extra coding.


Tutorial: Uploading Files Demystified

Posted by & filed under Tutorials, Tips and Demos.

network-upload-feat

Uploading files to a web server can be a tricky process because a lot depends on the web server’s features, abilities, and limits. This week’s tutorial aims to demystify some of the complexity behind this process and includes a sample project for download and testing.


Tutorial: Anonymous Functions and Closures

Posted by & filed under Tutorials, Tips and Demos.

closure

This week’s tutorial discusses the basics behind anonymous functions and closures in Lua. These methods provide a powerful way to keep track of variable instances on a per-function basis and, in the context of Corona SDK, pass parameters to functions in which you don’t control the passed-in content. Read further to discover how.


Tutorial: Methods for Positioning Text

Posted by & filed under Tutorials, Tips and Demos.

align-text-feat

At the basic level, creating and positioning text in Corona SDK is simple. However, when you need to position/align text in creative ways, things get a bit more complicated. In this tutorial, we’ll inspect the actual display object that Corona generates so that you can understand and achieve advanced positioning and alignment.


Tutorial: Continuous Actions in Corona

Posted by & filed under Tutorials, Tips and Demos.

playbutton

In some apps, you’ll need to perform some continuous action while the user’s touch remains on the screen. This could include a character running while the player holds down a “run” button, a space ship firing its lasers while the player’s finger is down, or some action being performed while the player holds the “X” button on a game controller. Today’s tutorial provides a foundation for this task.


Introducing the “Color Sample” Function

Posted by & filed under Tutorials, Tips and Demos.

dropper

For those Corona developers seeking a way to get the color of a specific pixel on the screen, you’re in luck! Starting with Daily Build #2106, our engineers have implemented the “display.colorSample()” function for this purpose. Read further to learn how it’s used.