use deadzone in running state
This commit is contained in:
parent
8379f06e24
commit
d7b4a2e90c
1 changed files with 1 additions and 1 deletions
|
|
@ -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"):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue