Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_guardener_arm_half_Draw_0

(view raw script w/o annotations or w/e)
1
draw_on_surface();
2
var box = 3154;
3
if (warning_draw == true)
4
{
5
    if (launch_dir == "up")
6
    {
7
        draw_set_color(warning_col);
8
        draw_rectangle(x - 32, 320, x + 32, box.bbox_bottom - 10, false);
9
        draw_set_color(c_black);
10
        draw_rectangle(x - 30, 322, x + 30, box.bbox_bottom - 12, false);
11
    }
12
    else if (launch_dir == "down")
13
    {
14
        draw_set_color(warning_col);
15
        draw_rectangle(x - 32, 320, x + 32, box.bbox_top + 10, false);
16
        draw_set_color(c_black);
17
        draw_rectangle(x - 30, 318, x + 30, box.bbox_top + 12, false);
18
    }
19
    else if (launch_dir == "left")
20
    {
21
        draw_rectangle(box.bbox_left + 10, y + 32, 320, y - 32, true);
22
    }
23
    else if (launch_dir == "right")
24
    {
25
        draw_rectangle(box.bbox_right - 10, y + 32, 320, y - 32, true);
26
    }
27
}