Add dodge option when crouching
This commit is contained in:
parent
40dd2d35bb
commit
80af211fd7
|
|
@ -45,6 +45,9 @@ func applies() -> void:
|
||||||
#et sera pris en compte des la sortie du crouch (Idle/Walk)
|
#et sera pris en compte des la sortie du crouch (Idle/Walk)
|
||||||
|
|
||||||
func input_management() -> void:
|
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
|
#courir annule automatiquement le crouch
|
||||||
if play_char.walk_or_run == "RunState":
|
if play_char.walk_or_run == "RunState":
|
||||||
transitioned.emit(self, "RunState")
|
transitioned.emit(self, "RunState")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue