__x = camera_get_view_x(view_camera[0]); __y = camera_get_view_y(view_camera[0]); x = _x + __x; y = _y + __y; if (mouse_x >= x and mouse_x <= x + width) and (mouse_y >= y and mouse_y <= y + height) and mouse_check_button_pressed(mb_left) { alarm[0] = 1; }