Make Hurtbox and Hitbox have dedicated layers

master
John Montagu, the 4th Earl of Sandvich 2024-10-11 11:39:14 -07:00
parent ec5204c452
commit b54ce905ab
Signed by: sandvich
GPG Key ID: 9A39BE37E602B22D
3 changed files with 5 additions and 2 deletions

View File

@ -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="."]

View File

@ -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="."]

View File

@ -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)