Deltarune script viewer

← back to main script listing

gml_GlobalScript_scr_act_charsprite_end

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

function scr_act_charsprite_end() { for (i = 0; i < 10; i++) { with (_charactsprite[i]) instance_destroy(); } with (obj_heroparent) { if (image_alpha == 0) { image_alpha = 1; acttimer = 0; state = 0; global.faceaction[myself] = 0; } } }
()
2
{
3
    for (i = 0; i < 10; i++)
4
    {
5
        with (_charactsprite[i])
6
            instance_destroy();
7
    }
8
    with (obj_heroparent)
9
    {
10
        if (image_alpha == 0)
11
        {
12
            image_alpha = 1;
13
            acttimer = 0;
14
            state = 0;
15
            global.faceaction[myself] = 0;
16
        }
17
    }
18
}