feat: new hit anim

This commit is contained in:
2025-08-01 17:58:25 +02:00
parent f914032f8f
commit 5c9add1fe4
4 changed files with 49 additions and 26 deletions

View File

@ -63,9 +63,9 @@ func _physics_process(delta: float) -> void:
velocity += get_gravity() * delta * gravity_modifier
var direction := Input.get_axis("move_left", "move_right")
if direction > 0:
if direction > 0 and is_on_floor():
look_right()
if direction < 0:
if direction < 0 and is_on_floor():
look_left()