Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_climb_explosion_ball_Draw_0

(view raw script w/o annotations or w/e)
1
if (back)
2
{
3
    if (init == 0)
4
    {
5
        init = 1;
6
        image_alpha = 0;
7
    }
8
    else if (init == 1)
9
    {
10
        image_alpha = 1;
11
        init = 2;
12
    }
13
    else
14
    {
15
        image_blend = merge_color(c_dkgray, c_white, image_alpha);
16
        if (image_alpha <= 0)
17
            instance_destroy();
18
    }
19
    if (image_yscale > 1.5)
20
        image_alpha -= 0.015;
21
}
22
else
23
{
24
    if (image_yscale > 2)
25
        image_alpha -= 0.02;
26
    if (image_alpha <= 0)
27
        instance_destroy();
28
}
29
event_inherited();