Undertale script viewer

← back to main script listing

gml_Object_obj_asgore_spearswipe_Draw_0

(view raw script w/o annotations or w/e)
1
if (image_index >= 5 && image_index < 6)
2
{
3
    if (type[curamt] == 1)
4
    {
5
        draw_set_color(#14A9FF);
6
        ossafe_fill_rectangle(global.idealborder[0], global.idealborder[2], global.idealborder[1], global.idealborder[3]);
7
    }
8
    if (type[curamt] == 2)
9
    {
10
        draw_set_color(c_orange);
11
        ossafe_fill_rectangle(global.idealborder[0], global.idealborder[2], global.idealborder[1], global.idealborder[3]);
12
    }
13
}
14
draw_sprite_ext(spr_asgore_swipe_nospear, image_index, x, y, image_xscale, image_yscale, 0, c_white, 1);
15
if (type[curamt] == 0)
16
    image_blend = c_red;
17
if (type[curamt] == 1)
18
    image_blend = #14A9FF;
19
if (type[curamt] == 2)
20
    image_blend = c_orange;
21
draw_sprite_ext(spr_asgore_swipe_spear, image_index, x, y, image_xscale, image_yscale, 0, image_blend, 1);