Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_gerson_box_rumble_controller_Step_0

(view raw script w/o annotations or w/e)
1
timer++;
2
if (phase == 0)
3
{
4
    if (i_ex(my_flash) && (timer % 3) == 0)
5
    {
6
        with (
scr_oflash
scr_oflash

function
scr_oflash()
{ _oflash = instance_create(x, y, obj_oflash); _oflash.image_xscale = image_xscale; _oflash.image_speed = 0; _oflash.image_index = image_index; _oflash.image_yscale = image_yscale; _oflash.sprite_index = sprite_index; _oflash.depth = depth - 1; _oflash.target = id; return _oflash; }
())
7
        {
8
            depth = other.depth + 1;
9
            flashcolor = c_lime;
10
            target = -4;
11
        }
12
    }
13
    if (timer == 24)
14
    {
15
        phase = 1;
16
        timer = 30;
17
    }
18
}
19
if (phase == 1)
20
{
21
    if (timer == 32)
22
    {
23
        box_bonk(bonk_side, 40);
24
        bonk_side *= -1;
25
        timer = 0;
26
    }
27
}
28
if (global.turntimer < 1)
29
{
30
    with (obj_hammer_of_justice_enemy)
31
        visible = true;
32
    instance_destroy();
33
}