Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_meteor_Other_15

(view raw script w/o annotations or w/e)
1
if (active == 1)
2
{
3
    if (room == room_dw_castle_tv_zone_minigame)
4
    {
5
        with (obj_mike_minigame_controller)
6
        {
7
            fuel = 
scr_approach
scr_approach

function
scr_approach(arg0, arg1, arg2)
{ if (arg0 < arg1) { arg0 += arg2; if (arg0 > arg1) return arg1; } else { arg0 -= arg2; if (arg0 < arg1) return arg1; } return arg0; }
(fuel, 0, 40);
8
            
scr_shakescreen
scr_shakescreen

function
scr_shakescreen(arg0 = 4, arg1 = 4)
{ var shaker = instance_create(x, y, obj_shake); if (i_ex(shaker)) { shaker.shakex = arg0; shaker.shakey = arg1; } }
(2, 2);
9
            if (!snd_is_playing(snd_hurt1))
10
                snd_play(snd_hurt1);
11
        }
12
    }
13
    if (destroyonhit == 1)
14
        instance_destroy();
15
}