feat: new hit anim
This commit is contained in:
@ -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()
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user