Dynamic polylines

Is it possible to build a polyline on the fly, or can complex lines be created by user input only as multiple Line objects?

The line:append() function works for me when initializing curves, but not when responding to input events after the line has already been created. [import]uid: 8145 topic_id: 4711 reply_id: 304711[/import]

Currently, you can’t manipulate polylines after creation. Personally, I’m hoping this will change, but there doesn’t appear to be much of a performance issue if you need to re-create/replace an existing one dynamically. Just try to limit how often you do it. If you need the polyline to being flexible, think about connecting the ends of lines using joints, as with the chains sample code.

matt [import]uid: 8271 topic_id: 4711 reply_id: 15418[/import]

Thanks horace, this one’s been driving me crazy. I have a lot of code in my app, so I thought it was my fault – spent many wasted hours trying to debug it. Polys would be created, but not appear until a new poly was created … unless the new poly was created *while* the old one was still being built, in which case the old one would flash for one frame, then both would disappear. Fun!
[import]uid: 9659 topic_id: 4711 reply_id: 15794[/import]

have a look here
http://developer.anscamobile.com/forum/2010/12/15/displaylineappend-doesnt-work-realtime-unless-linewidth-set-eg-linewidth00000001

it works on the simulator but carlos says don’t do it. use his posted example zip instead

basically you want to redraw the line each frame [import]uid: 6645 topic_id: 4711 reply_id: 15900[/import]