add todos
This commit is contained in:
parent
e6026c266f
commit
7c1275f477
1 changed files with 3 additions and 1 deletions
|
|
@ -24,6 +24,7 @@ func _state_physics_update(_delta: float) -> void:
|
||||||
return
|
return
|
||||||
|
|
||||||
if abs(player.velocity.x) > abs(player.velocity.y):
|
if abs(player.velocity.x) > abs(player.velocity.y):
|
||||||
|
# TODO: implement walk left animation to stop doing flip_h
|
||||||
if player.velocity.x > 0:
|
if player.velocity.x > 0:
|
||||||
if player.anim_player.current_animation != "walk_right": player.anim_player.play("walk_right")
|
if player.anim_player.current_animation != "walk_right": player.anim_player.play("walk_right")
|
||||||
player.sprite.flip_h = false
|
player.sprite.flip_h = false
|
||||||
|
|
@ -31,8 +32,9 @@ func _state_physics_update(_delta: float) -> void:
|
||||||
if player.anim_player.current_animation != "walk_left": player.anim_player.play("walk_left")
|
if player.anim_player.current_animation != "walk_left": player.anim_player.play("walk_left")
|
||||||
player.sprite.flip_h = true
|
player.sprite.flip_h = true
|
||||||
else:
|
else:
|
||||||
pass
|
# TODO: walking up and down animations
|
||||||
#player.anim_dir = 'down' if player.velocity.y > 0 else 'up'
|
#player.anim_dir = 'down' if player.velocity.y > 0 else 'up'
|
||||||
|
pass
|
||||||
|
|
||||||
#player.sprite.play(player.anim_dir)
|
#player.sprite.play(player.anim_dir)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue