Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_screenshake_battle_Step_0

(view raw script w/o annotations or w/e)
1
var camera = view_camera[0]
2
camera_set_view_pos(camera, 0, 0)
3
battle_screenshake_duration -= 1
4
if (battle_screenshake_duration <= 0)
5
{
6
    instance_destroy()
7
    return;
8
}
9
camera_set_view_pos(camera, (view_x + (choose(battle_screenshake_intensity, (-battle_screenshake_intensity)))), (view_y + (choose(battle_screenshake_intensity, (-battle_screenshake_intensity)))))
10
battle_screenshake_intensity -= battle_screenshake_dec