Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_shadowman_sax_attack_Draw_0

(view raw script w/o annotations or w/e)
1
if (draw_style == 0)
2
    exit;
3
if (optimized_draw && !surface_exists(surf))
4
    surf = surface_create(640, 480);
5
if (progressLoop < pathLifetime)
6
{
7
    draw_set_alpha(1);
8
}
9
else
10
{
11
    image_alpha = max(0, (pathLifetime + 1) - progressLoop);
12
    if (!optimized_draw)
13
        draw_set_alpha((pathLifetime + 1) - progressLoop);
14
}
15
if (!freeze)
16
    loopStart = progressLoop;
17
colorProgress = 0;
18
if (loopStart > 1)
19
{
20
    if (loopStart > 2)
21
        colorProgress = 1;
22
    else
23
        colorProgress = loopStart - 1;
24
}
25
if (image_alpha > 0)
26
    event_user(7);
27
if (progressLoop == (pathLifetime + 1))
28
{
29
}
30
if (progressLoop >= pathLifetime)
31
    progressLoop += fadeSpeed;
32
else
33
    progressLoop += grow_Speed;
34
draw_set_alpha(1);