We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52ecf78 commit 53036b1Copy full SHA for 53036b1
1 file changed
scenes/game_logic/sprite_behaviors/character_sprite_behavior.gd
@@ -56,10 +56,10 @@ func _process_animations(_delta: float) -> void:
56
sprite.play(&"run")
57
else:
58
sprite.speed_scale = 2.0
59
- sprite.play(&"walk")
+ sprite.play(&"walk" if sprite.sprite_frames.has_animation(&"walk") else &"idle")
60
61
sprite.speed_scale = 1.0
62
63
64
65
func _notification(what: int) -> void:
0 commit comments