From the Forum – Issue #158

From the Forum – Issue #158

Forum iconWelcome to this week’s From the Forum. In this post, we highlight a few Corona Community Forums posts that cover important topics.

Drawing lines

In this forum post, the original poster (OP) wanted to draw finger-paint style but found that the lines were not “connecting” properly. While forum superstar horacebury offered the best answer right away, this discussion got deep into how touch events work and ways of ensuring that your line segments connect.

Making magnets

In another quickly-answered post, the OP came back and shared his code using weld joints and touch joints to emulate a magnet pulling an object towards it. This is a cool technique which you might want to use!

Pathfinding

Sometimes forum posts don’t need any discussion to be worth their weight in gold. We love it when our developers give back to the community and, in this post, forum megastar SGS provides a link to a pure Lua library that implements six different methods of pathfinding, including A*.


Do you have a particular forum thread that was helpful for you? Let us know about it! Email [email protected], 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.

Rob Miracle
[email protected]

Rob is the Developer Relations Manager for Corona Labs. Besides being passionate about helping other developers make great games using Corona, he is also enjoys making games in his spare time. Rob has been coding games since 1979 from personal computers to mainframes. He has over 16 years professional experience in the gaming industry.

No Comments

Sorry, the comment form is closed at this time.