Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Animate this to increase/decrease/fade the shaking
- var shake_amount = 1.0
- func _process(delta):
- camera.set_offset(Vector2( \
- rand_range(-1.0, 1.0) * shake_amount, \
- rand_range(-1.0, 1.0) * shake_amount \
- ))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement