Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_screenshake

(view raw script w/o annotations or w/e)
1
function 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 } }
(argument0, argument1) //gml_Script_scr_screenshake
2
{
3
    if instance_exists(obj_screenshake_player)
4
        return;
5
    with (instance_create(__view_get((9 << 0), 0).x, __view_get((9 << 0), 0).y, obj_screenshake_player))
6
    {
7
       alarm[0]
8
        intensity = argument1
9
    }
10
}