Allow jumping from idle

This commit is contained in:
Jarrod Doyle 2024-02-25 15:27:59 +00:00
parent 2b01dfaeaa
commit 9c9a3ecc26
Signed by: Jayrude
GPG Key ID: 38B57B16E7C0ADF7
1 changed files with 2 additions and 0 deletions

View File

@ -476,6 +476,8 @@ func _on_idle_state_processing(_delta: float) -> void:
state_chart.send_event("Move") state_chart.send_event("Move")
if Input.is_action_just_pressed("cc_sprint"): if Input.is_action_just_pressed("cc_sprint"):
state_chart.send_event("Crouch") state_chart.send_event("Crouch")
if Input.is_action_just_pressed("cc_jump"):
state_chart.send_event("Jump")
func _on_moving_state_processing(_delta: float) -> void: func _on_moving_state_processing(_delta: float) -> void: