Deltarune (Chapter 3) script viewer

← back to main script listing

gml_GlobalScript_scr_afterimage_grow_attached

(view raw script w/o annotations or w/e)
1
function 
scr_afterimage_grow_attached
scr_afterimage_grow_attached

function
scr_afterimage_grow_attached()
{ with (
scr_afterimage_grow())
{ target = argument[0]; image_blend = argument[1]; if (argument_count > 2) { if (argument[2] == true) depth = other.depth - 1; } } }
()
2
{
3
    with (
scr_afterimage_grow
scr_afterimage_grow

function
scr_afterimage_grow()
{ afterimage = instance_create(x, y, obj_afterimage_grow); afterimage.sprite_index = sprite_index; afterimage.image_index = image_index; afterimage.image_blend = image_blend; afterimage.image_speed = 0; afterimage.depth = depth; afterimage.image_xscale = image_xscale; afterimage.image_yscale = image_yscale; afterimage.image_angle = image_angle; return afterimage; }
())
4
    {
5
        target = argument[0];
6
        image_blend = argument[1];
7
        if (argument_count > 2)
8
        {
9
            if (argument[2] == true)
10
                depth = other.depth - 1;
11
        }
12
    }
13
}