Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_screenshake_battle_Create_0

(view raw script w/o annotations or w/e)
1
battle_screenshake_duration = 12
2
battle_screenshake_intensity = 6
3
battle_screenshake_dec = battle_screenshake_intensity / battle_screenshake_duration
4
reset_screen = true
5
if (instance_number(obj_screenshake_battle) == 1)
6
{
7
    view_x = camera_get_view_x(view_camera[0])
8
    view_y = camera_get_view_y(view_camera[0])
9
}
10
else
11
    reset_screen = false