Allow jumping from idle
This commit is contained in:
parent
2b01dfaeaa
commit
9c9a3ecc26
|
@ -476,6 +476,8 @@ func _on_idle_state_processing(_delta: float) -> void:
|
|||
state_chart.send_event("Move")
|
||||
if Input.is_action_just_pressed("cc_sprint"):
|
||||
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:
|
||||
|
|
Loading…
Reference in New Issue