I created somewhat of a prototype of a section in my game that involves drawing. I implemented the easiest way somewhat draw. But every time I draw, there's tiny dots making a trail.
Here's my technique how I did the glitchy drawings:
1. I make a tiny dot outside the layout
2. I test if the dot is coming to my mouse
3. I make the tiny dot copy itself onto mouse.x, mouse.y, when the cursor left button is down.
Hope you understand. If not, tell me.
Thanks for reading!