Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_titan_fight_explosion_ball_Draw_0

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