1 | if (shake_intensity > 0) |
2 | { |
3 | x = xstart |
4 | y = ystart |
5 | shake_intensity = lerp(shake_intensity, 0, 0.15) |
6 | x = xstart + (random_range((-shake_intensity), shake_intensity)) |
7 | y = ystart + (random_range((-shake_intensity), shake_intensity)) |
8 | } |