Change coordinates of line

Hi,

I’m working on a game, part of which requires the user to draw a line on the screen. I have this working fine but I’d like to be able to show the line while it is being drawn. I have most of this worked out but I’m stuck on one part. How can I change the x2 and y2 coordinates of the line after it has been added using display.newLine(x1, y1, x2, y2)

Any help will be greatly appreciated [import]uid: 27597 topic_id: 7805 reply_id: 307805[/import]

You can’t. You’ll need to break the line up into bits, or, if it’s straight, remove the line and redraw each time you modify it. [import]uid: 3953 topic_id: 7805 reply_id: 27735[/import]