Fix walking animation speed with analog movement

pull/26/head
Joseph DiGiovanni 2025-02-25 17:20:10 +07:00
parent 9c1ca24b12
commit 1fe809c95d
1 changed files with 6 additions and 0 deletions

@ -93,6 +93,12 @@ func handle_effects(delta):
elif animation.current_animation != "idle":
animation.play("idle", 0.1)
if animation.current_animation == "walk":
animation.speed_scale = speed_factor
else:
animation.speed_scale = 1.0
elif animation.current_animation != "jump":
animation.play("jump", 0.1)