Fixed walk animation

This commit is contained in:
RealMelwei 2025-09-19 12:16:17 +02:00
parent af14ac6fee
commit b30465742f

View file

@ -116,12 +116,7 @@ func manage_animation() -> void:
else:
if anim_sprite.animation == "walk":
anim_sprite.stop()
else:
if anim_sprite.animation == "walk":
anim_sprite.stop()
if not $AnimatedSprite2D.is_playing():
$AnimatedSprite2D.play("idle")
func manage_velocity(delta: float) -> void:
up_direction = (position - earth_center).normalized();