Compare commits

...

2 commits

Author SHA1 Message Date
7b7334990b implement animations 2025-11-23 05:30:31 -03:00
9823264882 fix halo 2025-11-23 05:27:35 -03:00
3 changed files with 6 additions and 5 deletions

View file

@ -9,7 +9,8 @@ func _enter(_previous_state_path: String, _data: Dictionary[StringName, Variant]
player.velocity = Vector2.ZERO player.velocity = Vector2.ZERO
player.move_and_slide() player.move_and_slide()
player.sprite.play("idle") player.sprite.frame = 1
player.sprite.pause()
print('entered') print('entered')

View file

@ -18,7 +18,7 @@ func _state_physics_update(_delta: float) -> void:
if watch_state([WALKING]): return if watch_state([WALKING]): return
if direction.y > 0: if direction.y > 0: player.sprite.play("walk_down")
player.sprite.play("walk_down") elif direction.y < 0: player.sprite.play("walk_up")
if direction.y < 0: elif direction.x > 0: player.sprite.play("walk_right")
player.sprite.play("walk_up") elif direction.x < 0: player.sprite.play("walk_left")