Undertale script viewer

← back to main script listing

gml_Object_obj_blackbox_o_Draw_0

(view raw script w/o annotations or w/e)
1
if (create >= 0)
2
{
3
    draw_sprite_ext(spr_blackbox_o_shatter, 0, x + 10, y + 10, 1 + (create / 10), 1 + (create / 10), create * 10, c_white, 1 - (create / 10));
4
    create -= 1;
5
}
6
if (create < 0)
7
    draw_sprite(sprite_index, image_index, curx, cury);
8
if (curx > x)
9
    curx -= 5;
10
if (curx < x)
11
    curx += 5;
12
if (cury > y)
13
    cury -= 5;
14
if (cury < y)
15
    cury += 5;