From the Forum — Issue #113

From the Forum — Issue #113

From the ForumWelcome to the latest installment of From the Forum. In this series, guest blogger Alex Jackson highlights outstanding threads from the Corona Forum. The goal is to bring attention to the most captivating, interesting, and thought-provoking discussions taking place in our very own backyard.

Please visit the forum to join these conversations or start your own!

Accessing objects below the overlay

You’ve got the most amazing idea for the next big hit. Getting started on the road to using the better facets of the Composer scene manager library can help with ensuring a smooth, steady transition from brainchild to mature money-maker. There are quite a few nooks and crannies to the Composer API and getting the better of all of them is in your best interests.

Overlays are one fantastic resource that can help you make a genius idea a reality. Using them is one thing, but using them effectively is quite another. The below thread makes mention of the difficulties that can arise when attempting to pass variables between an existing scene and the created overlay. Tricky, but with the tips provided in the below thread, you’re going to be a master in no time. Head on down to the original post to get a bit more familiar with the Composer library.

Async sockets in Corona

Let’s pose a little scenario: you’re working on a really cool web service that’s going to connect back to your awesome Corona app, and everything is going along famously. Then, you hit a roadblock. You need to a stop button, and you want your connection call to, naturally, stop trying to connect. But how do you accomplish this, all in Corona?

Server maestro extraordinaire Develephant provides some nifty code that shows how to set up an asynchronous server connection through Lua, which, one might suspect, will work amazingly well with the coming Coronium update. Check out the below thread to learn everything you need to know! And, if you keep reading, you’ll find a nice little surprise for those of you looking for an extra layer of security.

Internet connectivity checks

Develephant is back at it with another great suggestion. We’ve gone over several ways to check for Internet connections from users devices, and there is no problem with adding another method to the connectivity madness.

This method involves use of the socket library, which is, as Develephant says, is a bit messy, but it gets the job done. Check out the original thread in order to understand the functionality.

About Alex

Alex Jackson is an indie developer and the founder of Panc Interactive, specializing in retro-style gaming. He has created several mobile applications, enjoys long walks on the beach, pixel art, and reading the Corona forums. Contact him by email or follow him on Twitter: @pancinteractive. Check out his new game Segreta on iOS, Android, Windows Phone and Amazon devices.

No Comments

Sorry, the comment form is closed at this time.