As you can see in the title, I am genuinely confused by the difference between those 2. I was trying to let an object destroy itself when clicked by the mouse, and I tried
, but it didn't work. I then tried the same thing with position_meeting,
, and it worked just fine. Can someone please explain?
GML:
if (mouse_check_button(mb_left)) && (place_meeting(mouse_x,mouse_y,self)) instance_destroy();
GML:
if (mouse_check_button(mb_left)) && (position_meeting(mouse_x,mouse_y,self)) instance_destroy();