Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_gerson_darken_Draw_0

(view raw script w/o annotations or w/e)
1
depth = 800;
2
if (i_ex(obj_growtangle) && con == 0)
3
{
4
    if (image_alpha < 1)
5
        image_alpha += 0.05;
6
}
7
else
8
{
9
    if (image_alpha > 0)
10
        image_alpha -= 0.05;
11
    if (image_alpha <= 0)
12
    {
13
        instance_destroy();
14
        obj_tensionbar.depth = savetensiondepth;
15
        obj_heroparent.depth = savesusiedepth;
16
        obj_hammer_of_justice_enemy.depth = savegersondepth;
17
    }
18
}
19
draw_sprite_ext(spr_whitepixel, 0, camerax(), cameray(), 999, 999, 0, c_black, image_alpha);