Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_growtangle_electric_Draw_0

(view raw script w/o annotations or w/e)
1
if (instance_exists(obj_growtangle))
2
{
3
    plugangle = 0;
4
    wy = 0;
5
    wx = 75;
6
    if (con >= 1)
7
    {
8
        plugangle = image_angle;
9
        wx = lengthdir_x(obj_growtangle.sprite_width / 2, image_angle);
10
        wy = lengthdir_y(obj_growtangle.sprite_width / 2, image_angle);
11
    }
12
    if (type != 1)
13
        draw_sprite_ext(spr_growtangle_electric_plug, 0, (x + xx) - wx - plugx, (y + xx) - wy, 2, 2, plugangle, c_white, plugalpha);
14
    draw_sprite_ext(spr_growtangle_electric_plug, 0, x + xx + wx + plugx, y + xx + wy, 2, 2, plugangle + 180, c_white, plugalpha);
15
}
16
draw_self();