mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 10:45:33 +00:00
Area trigger
This commit is contained in:
parent
10ab6fce1a
commit
77765a581e
3 changed files with 58 additions and 1 deletions
15
Scenes/Interactable/AreaTrigger.tscn
Normal file
15
Scenes/Interactable/AreaTrigger.tscn
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
[gd_scene load_steps=3 format=3 uid="uid://bdp710abe10s5"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/Interactables/AreaTrigger.cs" id="1_oc40x"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_1nht3"]
|
||||
|
||||
[node name="AreaTrigger" type="Area2D"]
|
||||
collision_layer = 4
|
||||
collision_mask = 2
|
||||
script = ExtResource("1_oc40x")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("RectangleShape2D_1nht3")
|
||||
|
||||
[connection signal="area_entered" from="." to="." method="_on_area_entered"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue