I want to draw a line under the mouse when the button is pressed.
The code of tracking the mouse and saving the points is already done, now I need to draw the lines...
Is there any easy way to draw a line from one point to another or do I need to draw a picture and scale it to simulate a line?
Comments
https://forum.orx-project.org/discussion/3759
https://forum.orx-project.org/discussion/3374#Comment_3421
What is the intent of having those thousands of red dots? If you really need that many dots, I'd recommend using only a single object and then either using an appropriate shader or overriding its rendering (by listening or the orxRENDER_EVENT_OBJECT_START) and issuing yourself the thousands draw calls using the orxDisplay interface.
Also you might want to consider using catmull-rom splines for a smoother path (there are functions for that in the orxMath module I believe).