Reset speed scale when headbob animation is not playing

This commit is contained in:
2024-01-20 15:17:57 -08:00
parent 26415d4093
commit db61d9b4cd

View File

@ -232,6 +232,7 @@ func headbob_animation(moving):
HEADBOB_ANIMATION.speed_scale = (current_speed / base_speed) * 1.75
else:
HEADBOB_ANIMATION.play("RESET", 0.25)
HEADBOB_ANIMATION.speed_scale = 1
func _process(delta):