From 54a9bd58683d7526db5a3acfbeca76fb64755b62 Mon Sep 17 00:00:00 2001 From: Thomas Lavocat Date: Mon, 29 May 2023 08:23:23 +0200 Subject: [PATCH] =?UTF-8?q?princesse/r=C3=A9glages:=204*=20plus=20de=20fri?= =?UTF-8?q?ctions=20en=20l'air=20qu'au=20sol?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit et aussi je revert la longueur des scaner des wall hug --- princesse.tscn | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/princesse.tscn b/princesse.tscn index a3c34c0..2e71658 100644 --- a/princesse.tscn +++ b/princesse.tscn @@ -297,6 +297,7 @@ JUMPING_SPEED = 230 KICK_JUMP_LIMITER = 0.75 COYOTE_LENGTH = 7 COYOTE_GRAB_LENGTH = 4 +WALK_INCR_AIR = 4 [node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."] sprite_frames = SubResource("SpriteFrames_q52wx") @@ -304,31 +305,31 @@ animation = &"falling_diagonals" frame_progress = 0.0129146 [node name="wall_detect_left" type="RayCast2D" parent="."] -target_position = Vector2(-6, 0) +target_position = Vector2(-8, 0) collision_mask = 16 [node name="wall_detect_left2" type="RayCast2D" parent="."] position = Vector2(0, -12) -target_position = Vector2(-6, 0) +target_position = Vector2(-8, 0) collision_mask = 16 [node name="wall_detect_left3" type="RayCast2D" parent="."] position = Vector2(0, 22) -target_position = Vector2(-6, 0) +target_position = Vector2(-8, 0) collision_mask = 16 [node name="wall_detect_right" type="RayCast2D" parent="."] -target_position = Vector2(6, 0) +target_position = Vector2(8, 0) collision_mask = 16 [node name="wall_detect_right2" type="RayCast2D" parent="."] position = Vector2(0, -12) -target_position = Vector2(6, 0) +target_position = Vector2(8, 0) collision_mask = 16 [node name="wall_detect_right3" type="RayCast2D" parent="."] position = Vector2(0, 22) -target_position = Vector2(6, 0) +target_position = Vector2(8, 0) collision_mask = 16 [node name="Camera2D" type="Camera2D" parent="."]