Add dodge option when crouching

This commit is contained in:
TheThomaas 2026-09-27 11:55:20 +02:00
parent 40dd2d35bb
commit 80af211fd7

View file

@ -45,6 +45,9 @@ func applies() -> void:
#et sera pris en compte des la sortie du crouch (Idle/Walk)
func input_management() -> void:
if Input.is_action_just_pressed(play_char.dodge_action) and play_char.dodge_cooldown <= 0.0:
transitioned.emit(self, "DodgeState")
#courir annule automatiquement le crouch
if play_char.walk_or_run == "RunState":
transitioned.emit(self, "RunState")