Modifying Vector Lines

I am new to Corona and am contemplating it for my next game mainly because of the faster development time plus instant porting to Android.

I have a line created with display.newLine, is there a property on this object to change its end points? or is it static?

I “solved” my problem by removing and adding a new line every time the player’s finger moves, but I feel like that will be wasting a lot of memory allocating and deallocating it almost every frame.

Are you supposed to recreate these objects when they change or is there a way to modify them after they are created?

Also is there anywhere with more complete documentation? It seems that the API page is missing properties of many objects which means I have to sit and guess at what is available. Any auto-generated docs would be nice, then they would automatically update as long as you guys document your code… [import]uid: 108779 topic_id: 18707 reply_id: 318707[/import]

our documentation sucks.

as for removing/recreating lines - when modifying them. not a problem - specially if you are dealing with few line segments.

the trick is to pre-allocate a table with the perceived maximum number of segments and remove/insert points into the table. then draw it.

c. [import]uid: 24 topic_id: 18707 reply_id: 71897[/import]