Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_barrier_Create_0

(view raw script w/o annotations or w/e)
1
grad_direction = false;
2
grey = 0;
3
index = instance_number(object_index);
4
max_index = 100;
5
alarm[0] = 1;
gml_Object_obj_barrier_Alarm_0.gml

if (index < max_index) { with (instance_create_depth((room_width / 2) - (room_width / (index + 1)), (room_height / 2) - (room_height / (index + 1)), -index, obj_barrier)) y -= (2000 / index); }
6
y -= (2000 / index);