Answers for "camera shake godot"

0

camera shake godot

# 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 \
    ))
Posted by: Guest on September-05-2021

Browse Popular Code Answers by Language