Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_sneo_phonehand_Draw_0

(view raw script w/o annotations or w/e)
1
visibiliytimer++;
2
if (visibiliytimer < 2)
3
    exit;
4
if (image_alpha < 1)
5
    image_alpha += 0.1;
6
draw_set_alpha(image_alpha);
7
draw_set_color(c_green);
8
draw_line_width(x, y, jointx, jointy, 4);
9
if (i_ex(boss))
10
{
11
    draw_line_width(jointx, jointy, boss.x, boss.y, 4);
12
    for (i = 0; i < 4; i++)
13
    {
14
        draw_sprite_ext(spr_sneo_bullet0, 0, lerp(x, jointx, i / 4), lerp(y, jointy, i / 4), 2, 2, 0, c_green, 1);
15
        draw_sprite_ext(spr_sneo_bullet0, 0, lerp(jointx, boss.x, i / 4), lerp(jointy, boss.y, i / 4), 2, 2, 0, c_green, 1);
16
    }
17
}
18
draw_self();
19
draw_set_alpha(1);