must be holding wasd to dash

This commit is contained in:
Michael Campbell 2026-02-18 19:00:03 -05:00
parent 8a173b968d
commit 84415d5aca

View file

@ -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