This commit is contained in:
2025-09-04 19:18:28 +02:00
parent 3f2ca68a4f
commit 6e599c8f1c
5 changed files with 30 additions and 26 deletions

View File

@@ -35,6 +35,8 @@ position = Vector2(320, 640)
shape = SubResource("RectangleShape2D_xxgf6")
[node name="Area2D" type="Area2D" parent="."]
collision_layer = 3
collision_mask = 3
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
position = Vector2(0, 320)
@@ -52,4 +54,4 @@ shape = SubResource("RectangleShape2D_xxgf6")
position = Vector2(320, 640)
shape = SubResource("RectangleShape2D_xxgf6")
[connection signal="body_entered" from="Area2D" to="." method="_body_entered_for_multiple"]
[connection signal="body_exited" from="Area2D" to="." method="_on_area_2d_body_exited"]