Files
project-hood/scenes/interactable.tscn

16 lines
540 B
Plaintext

[gd_scene load_steps=3 format=3 uid="uid://n24dhbpflcec"]
[ext_resource type="Script" uid="uid://ccthj5mtii0bw" path="res://scripts/interactable.gd" id="1_56v82"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ij5l6"]
size = Vector2(32, 32)
[node name="Interactable" type="Area2D"]
collision_layer = 2
script = ExtResource("1_56v82")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_ij5l6")
[connection signal="body_entered" from="." to="." method="_on_body_entered"]