must be holding wasd to dash
This commit is contained in:
parent
8a173b968d
commit
84415d5aca
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue