Reset a RESET value, attempt to fix a camera bug

This commit is contained in:
2024-06-21 00:11:36 -07:00
parent 2879337ad2
commit be0001e554
3 changed files with 5 additions and 42 deletions

View File

@ -313,9 +313,10 @@ func headbob_animation(moving):
# This code is extremely performant but it makes no sense.
else:
if HEADBOB_ANIMATION.is_playing():
HEADBOB_ANIMATION.play("RESET", 0.25)
if HEADBOB_ANIMATION.current_animation == "sprint" or HEADBOB_ANIMATION.current_animation == "walk":
print("reset here")
HEADBOB_ANIMATION.speed_scale = 1
HEADBOB_ANIMATION.play("RESET", 1)
func _process(delta):