Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_ch2_scene27_queenhand_Draw_0

(view raw script w/o annotations or w/e)
1
if (!leave)
2
{
3
    draw_sprite_ext(kr_sprite, 0, x + x_pos, y + y_pos, 2, 2, 0, c_white, image_alpha);
4
    if (
scr_sideb_get_phase
scr_sideb_get_phase

function
scr_sideb_get_phase()
{ var phase = 0; if (global.flag[916 snowgrave_fail] == 0) { if (global.flag[915 snowgrave_plot] > 0 && global.flag[915 snowgrave_plot] < 4) phase = 1; if (global.flag[915 snowgrave_plot] >= 4 && global.flag[915 snowgrave_plot] < 7) phase = 2; if (global.flag[915 snowgrave_plot] >= 7 && global.flag[915 snowgrave_plot] < 20) phase = 3; if (global.flag[915 snowgrave_plot] >= 20) phase = 4; } return phase; }
() < 2)
5
        draw_sprite_ext(su_sprite, su_anim_index, x + x_pos, y + y_pos, 2, 2, 0, c_white, image_alpha);
6
    if (ra_shake)
7
    {
8
        shakeamt -= shakereduct;
9
        on *= -1;
10
        ral_x = nowx + (shakeamt * on);
11
        if (shakeamt <= 0)
12
        {
13
            ra_shake = false;
14
            ral_x = x;
15
        }
16
    }
17
    else
18
    {
19
        ral_x = x;
20
    }
21
    draw_sprite_ext(ra_sprite, ra_anim_index, ral_x + x_pos, y + y_pos, 2, 2, 0, c_white, image_alpha);
22
}
23
draw_sprite_ext(hand_sprite, 0, x + x_pos, y + y_pos, 2, 2, 0, c_white, image_alpha);