Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_barrier_Draw_0

(view raw script w/o annotations or w/e)
1
if (grey < 10)
2
    grad_direction = true;
3
else if (grey > 250)
4
    grad_direction = false;
5
if (grad_direction)
6
    grey += 2;
7
else
8
    grey -= 3;
9
color = make_color_rgb(grey, grey, grey);
10
draw_set_color(color);
11
draw_rectangle(x, y, (room_width / 2) + (room_width / index), (room_height / 2) + (room_height / index), false);