Merge pull request #26 from Joseph-DiGiovanni/analog-animation-fix

Fix walking animation speed with analog movement
pull/29/head
Kenney 2025-09-16 18:53:53 +07:00 committed by GitHub
commit b965ff4346
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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)