Global vars for x and y, for each instance, draw a line from current to x and y, set x and y to current, next instance. Kinda like that.
The line would be a sprite you create at current position, rotate towards x and y vars and set length to distance between vars and current position.