Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_sword_tunnel_sword_Draw_0

(view raw script w/o annotations or w/e)
1
if (telegraph == 0 && telegraphalpha > 0)
2
    telegraphalpha -= 0.1;
3
if (telegraph == 1 && telegraphalpha < 0.5)
4
    telegraphalpha += 0.05;
5
if (telegraphalpha > 0)
6
    draw_sprite_ext(spr_lasergun_laser_telegraph, 0, x, y, 999, 0.4, image_angle, c_red, telegraphalpha);
7
if (con > 0)
8
{
9
    var _timer = timer;
10
    if (_timer > 10)
11
        _timer = 10;
12
    if (image_blend == c_red)
13
        image_blend = merge_color(c_red, c_white, _timer / 10);
14
}
15
for (i = 0; i < 10; i++)
16
    draw_sprite_ext(sprite_index, image_index, lerp(xprevious, x, i / 10), lerp(yprevious, y, i / 10), image_xscale, image_yscale, image_angle, image_blend, i / 10);
17
draw_self();