Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_steamworks_33_bridge_Step_0

(view raw script w/o annotations or w/e)
1
if (active == true)
2
{
3
    if (x > x_target)
4
    {
5
        if (!audio_is_playing(snd_rumble))
6
            audio_play_sound(snd_rumble, 1, 1)
7
        scr_screenshake
scr_screenshake

function scr_screenshake(argument0, argument1) //gml_Script_scr_screenshake { if instance_exists(obj_screenshake_player) return; with (instance_create(__view_get((9 << 0), 0).x, __view_get((9 << 0), 0).y, obj_screenshake_player)) { alarm[0] intensity = argument1 } }
(9999, 1)
8
        x -= 5
9
    }
10
    else
11
    {
12
        x = x_target
13
        instance_destroy(obj_screenshake_player)
14
        scr_screenshake
scr_screenshake

function scr_screenshake(argument0, argument1) //gml_Script_scr_screenshake { if instance_exists(obj_screenshake_player) return; with (instance_create(__view_get((9 << 0), 0).x, __view_get((9 << 0), 0).y, obj_screenshake_player)) { alarm[0] intensity = argument1 } }
(10, 2)
15
        audio_play_sound(snd_rock_break, 1, 0)
16
        audio_stop_sound(snd_rumble)
17
        active = false
18
    }
19
}