From fa55e02180393adb331bc0e35bd2bde91b0832c2 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sat, 13 Apr 2024 23:56:57 +0200 Subject: [PATCH] WHY DOES AUTOSAVE NOT WORK --- behaviours/hunter.tscn | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/behaviours/hunter.tscn b/behaviours/hunter.tscn index 35acf02..b1c8d43 100644 --- a/behaviours/hunter.tscn +++ b/behaviours/hunter.tscn @@ -1,11 +1,17 @@ -[gd_scene load_steps=2 format=3 uid="uid://ctpn4hvkhxoi3"] +[gd_scene load_steps=3 format=3 uid="uid://ctpn4hvkhxoi3"] + +[ext_resource type="Script" path="res://behaviours/hunter.gd" id="1_3bmd5"] [sub_resource type="CircleShape2D" id="CircleShape2D_kxb8e"] radius = 100.0 [node name="Hunter" type="Node2D"] +script = ExtResource("1_3bmd5") [node name="DetectionArea" type="Area2D" parent="."] [node name="Shape" type="CollisionShape2D" parent="DetectionArea"] shape = SubResource("CircleShape2D_kxb8e") + +[connection signal="body_entered" from="DetectionArea" to="." method="_on_detection_area_body_entered"] +[connection signal="body_exited" from="DetectionArea" to="." method="_on_detection_area_body_exited"]