The syntax for appending lines to an existing line is
[lua]local line = display.newLine( 0,-110, 27,-35 )
line:append( 105,-35, 43,16)[/lua]
But what If I have to append variable no. of points to a line?
Shouldn’t there be a syntax with a table parameter like
[lua]local line = display.newLine( 0,-110, 27,-35 )
local newPoints = {105,-35, 43,16}
line:append(newPoints)[/lua]
Like how we define custom shapes for physics bodies… [import]uid: 64174 topic_id: 20123 reply_id: 320123[/import]