Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_darkness_overlay_Step_0

(view raw script w/o annotations or w/e)
1
if (global.fighting && i_ex(obj_growtangle))
2
{
3
    if (!box_init && obj_growtangle.growcon == 2)
4
    {
5
        box_init = true;
6
        with (obj_growtangle)
7
        {
8
            d = instance_create_depth(x, y, depth - 1, obj_afterimage);
9
            d.sprite_index = spr_custom_box;
10
            d.image_xscale = image_xscale / (maxxscale / 2);
11
            d.image_yscale = image_yscale / (maxyscale / 2);
12
            d.image_angle = image_angle;
13
            d.image_blend = image_blend;
14
            d.image_alpha = (1 - image_alpha) + 0.1;
15
            d.image_speed = 0;
16
            depth = 20;
17
        }
18
    }
19
    if (box_init && obj_growtangle.growcon == 3)
20
    {
21
        box_init = false;
22
        obj_growtangle.depth = 5;
23
    }
24
}
25
if (mem_darkness == -1)
26
    mem_darkness = image_alpha;
27
updated_this_frame = false;