Reset speed scale when headbob animation is not playing
This commit is contained in:
@ -232,6 +232,7 @@ func headbob_animation(moving):
|
|||||||
HEADBOB_ANIMATION.speed_scale = (current_speed / base_speed) * 1.75
|
HEADBOB_ANIMATION.speed_scale = (current_speed / base_speed) * 1.75
|
||||||
else:
|
else:
|
||||||
HEADBOB_ANIMATION.play("RESET", 0.25)
|
HEADBOB_ANIMATION.play("RESET", 0.25)
|
||||||
|
HEADBOB_ANIMATION.speed_scale = 1
|
||||||
|
|
||||||
|
|
||||||
func _process(delta):
|
func _process(delta):
|
||||||
|
Reference in New Issue
Block a user