From febf62053edd1681397399ae3e232813cfbb4f30 Mon Sep 17 00:00:00 2001 From: Thomas Lavocat Date: Mon, 1 May 2023 08:11:37 +0200 Subject: [PATCH] =?UTF-8?q?princesse/accroche:=20ne=20pas=20marcher=20si?= =?UTF-8?q?=20accroch=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- princesse.gd | 3 +++ 1 file changed, 3 insertions(+) diff --git a/princesse.gd b/princesse.gd index 0377570..3667019 100644 --- a/princesse.gd +++ b/princesse.gd @@ -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: