diff --git a/player/player.gd b/player/player.gd index 79fb3f2..f66f6ce 100644 --- a/player/player.gd +++ b/player/player.gd @@ -44,7 +44,7 @@ func _process_movement() -> void: velocity = Vector3(input.x, 0., input.y) * MOVE_SPEED move_and_slide() - if Input.is_action_just_pressed("dash") and stamina >= 1.: + if Input.is_action_just_pressed("dash") and stamina >= 1. and not input.is_zero_approx(): stamina = 0. dash_direction = input state = State.DASHING