L
Lipman
Guest
Hi,
I've been trying to write a piece of code that would destroy an instance with mouse button release. I tried the below, but it wouldn't work - none visible action is performed:
if (mouse_check_button_released(mb_left) && position_meeting(mouse_x, mouse_y, id)) {
instance_destroy();
}
However, the above works when the mouse_checked_button_pressed is used instead.
Any clues what I'm doing wrong?
I've been trying to write a piece of code that would destroy an instance with mouse button release. I tried the below, but it wouldn't work - none visible action is performed:
if (mouse_check_button_released(mb_left) && position_meeting(mouse_x, mouse_y, id)) {
instance_destroy();
}
However, the above works when the mouse_checked_button_pressed is used instead.
Any clues what I'm doing wrong?