First I am not only new to the Corona SDK, but to Lua as well.
I have been running through the tutorials and samples, to learn both the SDK and Lua. There is one thing I would like to play with that I cannot find any really focused on it. That would be I want to draw a line that follows the users finger right in main and without any thing else drawn on the screen yet.
I read about touch events, and drawing polylines, and looked at the Martian game example that draws a line from a ship following the finger to where they stop. However I cannot see where to register my touch event when there is nothing on the screen yet. I do not want to draw a polyline because I don’t know where the touch is going to start. I didn’t see any built in “display” object that would allow me to register a touch event against the display itself.
So this left me confused, do I have to place a background image just so I can have something to register a touch event against, this seemed odd. Also do I or can I just draw a filled rect covering the whole screen and then register the touch event against that and then draw the polyline on top the image or rect sampling the touch location until the touch event is done?
Anyway, any help would be appreciated, kind regards. [import]uid: 43562 topic_id: 7735 reply_id: 307735[/import]