Deltarune (Chapter 5) script viewer

← back to main script listing

gml_Object_obj_growtangle_Draw_0

related scripts: Create_0Destroy_0Draw_0 Other_5Step_0Step_2

(view raw script w/o annotations or w/e)
1
if (growcon == 3 && !close_signal)
2
{
3
    close_signal = true;
4
    if (close_function)
5
        close_function();
6
}
7
if (draw_function)
8
{
9
    draw_function();
10
}
11
else
12
{
13
    draw_sprite_ext(sprite_index, 1, x, y, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
14
    if (customBox && growth && growcon != 2)
15
    {
16
        var _scale = sizer * growscale;
17
        draw_sprite_ext(spr_custom_box, 0, x, y, _scale, _scale, image_angle, image_blend, image_alpha);
18
    }
19
    else
20
    {
21
        draw_self();
22
    }
23
}