Welcome to this week’s From the Forum. In this post, we highlight a few Corona Community Forums posts that cover important topics.
Flipping cards
In a 2D system, objects have no depth. You can easily flip an image horizontally by setting its xScale
property to -1
and use a transition to get a nice animation, except that it disappears briefly as the scale hits exactly 0
. Fortunately, forum stars Steve Johnson (StarCrunch) and Dave Bollinger chimed in on this thread with some different techniques to improve the common case of flipping a card.
Rockets Red Glare
If you want to launch a rocket, there generally should be a smoke trail following it, and that smoke eventually fades. In this thread, follow our forum heroes trying to accomplish this task.
Lights! Camera! Action!
For games in a 3D world, lighting is a major consideration — your objects are made up of meshes, textures, and maps that take the position of lights, ultimately rendering a visible object. In a 2D world, we don’t think about this much, but there are times where you may need dynamic lighting in a 2D world. This thread goes into the possibilities of 3D-style lighting using Corona’s advanced graphics features.
Do you have a particular forum thread that was helpful for you? Let us know about it! Email support@coronalabs.com, put FTF: and the forum title in the subject, and include the URL in the email. We will consider adding it to an upcoming edition of From the Forum.