Deltarune script viewer

← back to main script listing

gml_Object_obj_queen_search_image_Draw_0

(view raw script w/o annotations or w/e)
1
if (loading > 0)
2
{
3
    if (loading == 9)
4
    {
5
        loopindex = sprite_get_number(sprite_index - spr_cutscene_01_toriel_holding_tin_facepalm);
6
        image_index = 2;
7
        loopindex = 2;
8
    }
9
    loading--;
10
    if (loading == 0)
11
        image_index = 0;
12
    else if ((loading % 3) == 0)
13
        image_index++;
14
}
15
else if (loopindex > 1 && !scr_queen_buffercheck
scr_queen_buffercheck

function scr_queen_buffercheck() { return instance_exists(obj_queen_buffercontroller) && obj_queen_buffercontroller.buffering == 1; }
())
16
{
17
    animtimer++;
18
    if (animtimer >= (loopindex * 4))
19
        animtimer = 0;
20
    image_index = floor(animtimer / 4);
21
}
22
draw_self();