Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_queen_search_bdog_Step_0

(view raw script w/o annotations or w/e)
1
if (birthday >= infinity)
2
    show_error("BIRTHDAY OVERFLOW BIRTHDAY OVERFLOW BIRTHDAY OVERFLOW BIRTHDAY OVERFLOW BIRTHDAY OVERFLOW BIRTHDAY OVERFLOW BIRTHDAY OVERFLOW BIRTHDAY OVERFLOW BIRTHDAY OVERFLOW BIRTHDAY OVERFLOW BIRTHDAY OVERFLOW BIRTHDAY OVERFLOW ", false);
3
if (birthday >= infinity)
4
    birthday = 0;
5
if (bufferstate == 0 && scr_queen_buffercheck
scr_queen_buffercheck

function scr_queen_buffercheck() { return instance_exists(obj_queen_buffercontroller) && obj_queen_buffercontroller.buffering == 1; }
())
6
{
7
    image_blend = c_gray;
8
    bufferstate = 1;
9
}
10
else if (bufferstate == 1 && !scr_queen_buffercheck
scr_queen_buffercheck

function scr_queen_buffercheck() { return instance_exists(obj_queen_buffercontroller) && obj_queen_buffercontroller.buffering == 1; }
())
11
{
12
    image_blend = c_white;
13
    bufferstate = 2;
14
}
15
if (bufferstate == 1)
16
    exit;
17
if (loading > 0)
18
    exit;
19
if (timer < 162)
20
{
21
    scr_orbitaroundpoint_dx
scr_orbitaroundpoint_dx

function scr_orbitaroundpoint_dx(arg0, arg1, arg2, arg3) { x = arg0 + lengthdir_x(arg2, arg3); y = arg1 + lengthdir_y(arg2, arg3); }
(xstart, ystart, min(timer * 1.9, 340), (timer * 10 * flip) + direction);
22
}
23
else if (timer >= 162 && impact == 0)
24
{
25
    timer = 162;
26
    scr_orbitaroundpoint_dx
scr_orbitaroundpoint_dx

function scr_orbitaroundpoint_dx(arg0, arg1, arg2, arg3) { x = arg0 + lengthdir_x(arg2, arg3); y = arg1 + lengthdir_y(arg2, arg3); }
(xstart, ystart, min(timer * 1.9, 340), (timer * 10 * flip) + direction);
27
    d = instance_exists(obj_shake) ? 196 : instance_create(0, 0, obj_shake);
28
    d.shakex = ceil(2);
29
    d.shakey = ceil(2);
30
    snd_play(snd_screenshake);
31
    impact = 1;
32
    var explosion = instance_create(x, y, obj_animation_dx);
33
    explosion.sprite_index = spr_realisticexplosion;
34
    explosion.image_index = 3;
35
    explosion.depth = depth - 4;
36
    birthday = infinity;
37
}
38
timer++;
39
bufferstate = 0;