Some sprite fixes

This commit is contained in:
2026-06-28 19:11:28 +03:00
parent 43518b3c9e
commit 204546b93a
2 changed files with 7 additions and 6 deletions
+2 -1
View File
@@ -53,7 +53,8 @@ func _ready() -> void:
for sprite : AnimatedSprite2D in [ attack_left_sprite, attack_right_sprite ]:
var lambda := func() -> void:
sprite.hide()
blade_sprite.show()
if not is_zero_approx(velocity.x):
blade_sprite.show()
sprite.animation_finished.connect(lambda)
sprite.hide()