1 | if (shake_strength > 0) |
2 | { |
3 | x_offset = irandom_range((-shake_strength), shake_strength) |
4 | y_offset = irandom_range((-shake_strength), shake_strength) |
5 | shake_strength = lerp(shake_strength, 0, 0.1) |
6 | } |
7 | else |
8 | { |
9 | x_offset = 0 |
10 | y_offset = 0 |
11 | } |