Undertale script viewer

← back to main script listing

gml_Object_obj_6gun_crosshair_Create_0

(view raw script w/o annotations or w/e)
1
if (x < 10)
2
    x = 10;
3
if (x > (room_width - 10))
4
    x = room_width - 10;
5
if (y > (room_height - 10))
6
    y = room_height - 10;
7
if (y < 10)
8
    y = 10;
9
alarm[0] = 2;
gml_Object_obj_6gun_crosshair_Alarm_0.gml

if (x < 10) x = 10; if (x > (room_width - 10)) x = room_width - 10; if (y > (room_height - 10)) y = room_height - 10; if (y < 10) y = 10;