E
Edeyz
Guest
I am trying to draw a line from one instance to another when the mouse is on top. But if the instance running the code is after the instance in the with event it does not draw a line. How do I fix this?
Here is my code:
draw_self();
draw_set_colour(c_teal);
if mouseOnTop == true
{
with collision_circle(x,y, sprite_width * size, object_index, true, false)
{
draw_line(x,y,other.x,other.y);
}
draw_circle(x,y,((sprite_width * size) / 2) * 1.1, true);
}
Thank you
Edeyz
Here is my code:
draw_self();
draw_set_colour(c_teal);
if mouseOnTop == true
{
with collision_circle(x,y, sprite_width * size, object_index, true, false)
{
draw_line(x,y,other.x,other.y);
}
draw_circle(x,y,((sprite_width * size) / 2) * 1.1, true);
}
Thank you
Edeyz