I improved that code and tested it. I also added generating of debug circle points, to see if it really works.
If you have your points to draw skip Code in event construct (it is just for testing).
Event tick is almost same, i added checking if index changed, also drawing requires +1 to index value
Important:
- points array should store all points
- draw array is what points are drawn (they are copied from points array on index change)
- circle needs radius and circle steps to be something else than zero.
For horizontal or vertical lines:
[10 ; 10] , [50 ; 10] - this will make horizontal line.
[10 ; 10] , [10 ; 50] - this will make vertical line.
If you do not want drawing all lines in steps, just skip all my code and feed proper points in array.
Also what you want do exactly, what is that line for? I have strange feeling you want do something like health bar.