From b54ce905abecbbc57766865708380586350dc173 Mon Sep 17 00:00:00 2001 From: HumanoidSandvichDispenser Date: Fri, 11 Oct 2024 11:39:14 -0700 Subject: [PATCH] Make Hurtbox and Hitbox have dedicated layers --- BoundingBoxes/Hitbox.tscn | 4 +++- BoundingBoxes/Hurtbox.tscn | 2 ++ Entities/Arrow.tscn | 1 - 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/BoundingBoxes/Hitbox.tscn b/BoundingBoxes/Hitbox.tscn index 3859760..d5e1fd9 100644 --- a/BoundingBoxes/Hitbox.tscn +++ b/BoundingBoxes/Hitbox.tscn @@ -3,7 +3,9 @@ [ext_resource type="Script" path="res://BoundingBoxes/Hitbox.cs" id="1_44i8j"] [node name="Hitbox" type="Area2D"] -priority = 5.0 +collision_layer = 256 +collision_mask = 769 +priority = 5 script = ExtResource("1_44i8j") [node name="CollisionShape2D" type="CollisionShape2D" parent="."] diff --git a/BoundingBoxes/Hurtbox.tscn b/BoundingBoxes/Hurtbox.tscn index fb7f47e..5354b28 100644 --- a/BoundingBoxes/Hurtbox.tscn +++ b/BoundingBoxes/Hurtbox.tscn @@ -3,6 +3,8 @@ [ext_resource type="Script" path="res://BoundingBoxes/Hurtbox.cs" id="1_ov1ss"] [node name="Hurtbox" type="Area2D"] +collision_layer = 512 +collision_mask = 769 script = ExtResource("1_ov1ss") [node name="CollisionShape2D" type="CollisionShape2D" parent="."] diff --git a/Entities/Arrow.tscn b/Entities/Arrow.tscn index 8bbc7a9..46fb8e8 100644 --- a/Entities/Arrow.tscn +++ b/Entities/Arrow.tscn @@ -39,7 +39,6 @@ texture = ExtResource("1_0im1r") centered = false [node name="Hitbox" parent="." instance=ExtResource("3_f4lib")] -priority = 5 [node name="CollisionShape2D" parent="Hitbox" index="0"] position = Vector2(0, -0.5)