Make Hurtbox and Hitbox have dedicated layers
parent
ec5204c452
commit
b54ce905ab
|
@ -3,7 +3,9 @@
|
||||||
[ext_resource type="Script" path="res://BoundingBoxes/Hitbox.cs" id="1_44i8j"]
|
[ext_resource type="Script" path="res://BoundingBoxes/Hitbox.cs" id="1_44i8j"]
|
||||||
|
|
||||||
[node name="Hitbox" type="Area2D"]
|
[node name="Hitbox" type="Area2D"]
|
||||||
priority = 5.0
|
collision_layer = 256
|
||||||
|
collision_mask = 769
|
||||||
|
priority = 5
|
||||||
script = ExtResource("1_44i8j")
|
script = ExtResource("1_44i8j")
|
||||||
|
|
||||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||||
|
|
|
@ -3,6 +3,8 @@
|
||||||
[ext_resource type="Script" path="res://BoundingBoxes/Hurtbox.cs" id="1_ov1ss"]
|
[ext_resource type="Script" path="res://BoundingBoxes/Hurtbox.cs" id="1_ov1ss"]
|
||||||
|
|
||||||
[node name="Hurtbox" type="Area2D"]
|
[node name="Hurtbox" type="Area2D"]
|
||||||
|
collision_layer = 512
|
||||||
|
collision_mask = 769
|
||||||
script = ExtResource("1_ov1ss")
|
script = ExtResource("1_ov1ss")
|
||||||
|
|
||||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||||
|
|
|
@ -39,7 +39,6 @@ texture = ExtResource("1_0im1r")
|
||||||
centered = false
|
centered = false
|
||||||
|
|
||||||
[node name="Hitbox" parent="." instance=ExtResource("3_f4lib")]
|
[node name="Hitbox" parent="." instance=ExtResource("3_f4lib")]
|
||||||
priority = 5
|
|
||||||
|
|
||||||
[node name="CollisionShape2D" parent="Hitbox" index="0"]
|
[node name="CollisionShape2D" parent="Hitbox" index="0"]
|
||||||
position = Vector2(0, -0.5)
|
position = Vector2(0, -0.5)
|
||||||
|
|
Loading…
Reference in New Issue