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 |