use deadzone in running state

This commit is contained in:
yuki 2025-11-14 22:08:17 -03:00
parent 8379f06e24
commit d7b4a2e90c

View file

@ -13,7 +13,7 @@ func _state_physics_update(_delta: float) -> void:
player.move_and_slide()
if movement_vector.length() == 0:
if movement_vector.length() <= player.DEADZONE:
finished.emit(IDLE)
return
elif Input.is_action_just_pressed("hit_left"):