Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_steamworks_21_controller_geno_Alarm_0

(view raw script w/o annotations or w/e)
1
if (scene < 13)
2
{
3
    with (obj_axis_npc)
4
    {
5
        action_sprite = false;
6
        if (abs(y - obj_pl.y) < 20)
7
        {
8
            if (obj_pl.x < x)
9
                npc_direction = "left";
10
            else if (obj_pl.x > x)
11
                npc_direction = "right";
12
        }
13
        else if (obj_pl.y > y)
14
        {
15
            npc_direction = "down";
16
        }
17
        else if (obj_pl.y < y)
18
        {
19
            npc_direction = "up";
20
        }
21
    }
22
    scr_audio_fade_out
scr_audio_fade_out

function scr_audio_fade_out(arg0, arg1) { var snd = arg0; var fade_len = arg1; if (!audio_is_playing(snd)) return false; audio_sound_gain(snd, 0, fade_len); if (instance_exists(obj_audio_fade_helper)) { with (obj_audio_fade_helper) { if (audio_to_fade == snd) return false; } } with (instance_create(0, 0, obj_audio_fade_helper)) audio_to_fade = snd; }
(event_music, 300);
23
    scene = 45;
24
}