I'm on my cell so I can't write a whole lot but:
1.
All the old lines are destroyed, and new ones are created every tick.
2.
It's done every tick Regaudless.
Another thought, the variable I had "px" is short for previousX instead of playerX. It better represents what they do. Also the every tick event relates more with event 6 so I had it right above it as I recall.
In events 4 and 5 the corner that is being added or removed aren't the ones being compared with the distance.
In event 6 it's looping from the corner that was last added to the one that was first added. I went that way so I could set px before the loop started. So the lines would be created between the locations player,corner,corner...
I can maybe make up a picture to explain all of it better.
Edit:
The motion bit would be best done manually I think. The physics or any of the behaviors aren't really suited for it.