R
RoXSaida
Guest
Hello i want to destroy an object by clicking on it so i have create a object call : obj_tap and create a step event and here my code :
if mouse_check_button_released(mb_left) && mouse_x == obj_tap.x && mouse_y == obj_tap.y {
instance_destroy();
}
When i click on the object it do nothing :/
if mouse_check_button_released(mb_left) && mouse_x == obj_tap.x && mouse_y == obj_tap.y {
instance_destroy();
}
When i click on the object it do nothing :/