Compare commits
No commits in common. "7b7334990bc9e96fdc0007867b794127f4604d94" and "68602e7f23628414cb55896b5dd6d6b58c37f45b" have entirely different histories.
7b7334990b
...
68602e7f23
3 changed files with 5 additions and 6 deletions
Binary file not shown.
|
|
@ -9,8 +9,7 @@ func _enter(_previous_state_path: String, _data: Dictionary[StringName, Variant]
|
|||
player.velocity = Vector2.ZERO
|
||||
player.move_and_slide()
|
||||
|
||||
player.sprite.frame = 1
|
||||
player.sprite.pause()
|
||||
player.sprite.play("idle")
|
||||
|
||||
print('entered')
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ func _state_physics_update(_delta: float) -> void:
|
|||
|
||||
if watch_state([WALKING]): return
|
||||
|
||||
if direction.y > 0: player.sprite.play("walk_down")
|
||||
elif direction.y < 0: player.sprite.play("walk_up")
|
||||
elif direction.x > 0: player.sprite.play("walk_right")
|
||||
elif direction.x < 0: player.sprite.play("walk_left")
|
||||
if direction.y > 0:
|
||||
player.sprite.play("walk_down")
|
||||
if direction.y < 0:
|
||||
player.sprite.play("walk_up")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue