A
AFD456
Guest
Hi everyone, I'm trying to figure out how to draw a line using your mouse leaving no gaps between points?
I have 2 objects oControl and oPoint. And I use only this simple code:
oControl_Step_event:
if mouse_check_button(mb_left)
{
instance_create(mouse_x,mouse_y,oPoint)
}
If I move mouse fast the code above leaves larger gaps between oPoint instances (picture below). How can I prevent this? Or is there better way to draw a curved line? I know there's draw_point function but I havent been able to use it successfully.
Thank you for your time!
I have 2 objects oControl and oPoint. And I use only this simple code:
oControl_Step_event:
if mouse_check_button(mb_left)
{
instance_create(mouse_x,mouse_y,oPoint)
}
If I move mouse fast the code above leaves larger gaps between oPoint instances (picture below). How can I prevent this? Or is there better way to draw a curved line? I know there's draw_point function but I havent been able to use it successfully.
Thank you for your time!
Attachments
-
31.8 KB Views: 28