cosmic-gms/objects/obGuiButton/Step_0.gml
2024-10-31 17:39:35 +03:00

8 lines
No EOL
263 B
Text

__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;
}