Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_queenstatue_acid_Draw_0

(view raw script w/o annotations or w/e)
1
timer++;
2
if (x < (camerax() + 640))
3
    sink = true;
4
if (sink == true)
5
{
6
    if ((timer % 4) == 0)
7
        progress += 1;
8
}
9
xx = x + (sin(timer / 12) * 6);
10
yy = y + (sin(timer / 7) * 4);
11
draw_sprite_part_ext(spr_queenstatue_acid, 0, 0, 0, sprite_width, (sprite_height / 2) - progress, xx, yy + (progress * 2), 2, 2, c_white, 1);
12
bubbleindex += 0.25;
13
if (progress > 70)
14
    bubblealpha *= 0.8;
15
draw_sprite_ext(spr_mansion_hands_bubbles, bubbleindex, x - 14, y + 118, 2, 2, 0, c_white, bubblealpha);
16
if (bubblealpha < 0.01)
17
    instance_destroy();
18
global.flag[429 statue_sink_progress] = progress;