princesse/accroche: ne pas marcher si accroché

Lorsque la princesse est accrochée au mur, ne pas lui permettre de
partir de son accroche tant que le joueur maintient le bouton d'accroche
au mur. De cette manière, le joueur peut prendre le temps d'orienter son
stick comme il veut avant de sauter ou dasher.
This commit is contained in:
Thomas Lavocat
2023-05-01 08:11:37 +02:00
parent 743c8b13be
commit febf62053e

View File

@@ -377,6 +377,9 @@ func read_input() -> void:
else:
if kicking:
direction = kick_direction
# Ne pas marcher si on s'accroche au mur
walking = walking and not grab_wall
if Input.is_action_just_pressed("dash" + action_suffix):
if not dashing and available_dashs > 0: