1 | function 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 | } |