Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_screenshake_Step_0

(view raw script w/o annotations or w/e)
1
__view_set((0 << 0), 0, x_orig)
2
__view_set((1 << 0), 0, y_orig)
3
if scr_timer
scr_timer

function scr_timer() //gml_Script_scr_timer { if (timer > 0) { timer-- return false; } else return true; }
()
4
{
5
    __view_set((9 << 0), 0, view_object_original)
6
    instance_destroy()
7
}
8
__view_set((0 << 0), 0, ((__view_get((0 << 0), 0)) + (irandom_range((-intensity), intensity))))
9
__view_set((1 << 0), 0, ((__view_get((1 << 0), 0)) + (irandom_range((-intensity), intensity))))