Undertale script viewer

← back to main script listing

gml_Object_obj_holedown_Collision_1576

(view raw script w/o annotations or w/e)
1
if (global.phasing == 0 && global.interact == 0)
2
{
3
    global.interact = 4;
4
    global.phasing = 1;
5
    alarm[0] = 10;
gml_Object_obj_holedown_Alarm_0.gml

global.facing = 0; obj_mainchara.image_alpha = 0.5; obj_mainchara.vspeed = 5; obj_solidparent.solid = 0; alarm[2] = 81; alarm[1] = 4; snd_play(snd_fall2);
6
    ns = 1;
7
    instance_create(other.x, other.y + 20, obj_cosmetichole);
8
    if (instance_number(obj_cosmetichole) > 10 && room == room_ruins10)
9
    {
10
        ns = 0;
11
        snd_play(snd_hero);
12
        with (obj_cosmetichole)
13
            destroyme = 1;
14
        global.interact = 0;
15
        global.phasing = 0;
16
        instance_destroy();
17
    }
18
    if (instance_number(obj_cosmetichole) >= 1000)
19
    {
20
        with (obj_cosmetichole)
21
            destroyme = 1;
22
        instance_create(other.x, other.y + 20, obj_cosmetichole);
23
    }
24
    if (ns == 1)
25
        snd_play(snd_noise);
26
}