Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_cavern_wall_Other_15

(view raw script w/o annotations or w/e)
1
snd_stop(snd_damage_bc);
2
snd_play(snd_damage_bc, 0.5, 0.5 + random(1));
3
if (active == 1)
4
{
5
    if (room == room_dw_castle_tv_zone_minigame)
6
    {
7
        with (obj_mike_minigame_controller)
8
            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, 5);
9
        if (!snd_is_playing(snd_hurt1))
10
            snd_play(snd_hurt1);
11
    }
12
    if (destroyonhit == 1)
13
        instance_destroy();
14
}