summaryrefslogtreecommitdiff
path: root/Scenes/Entities/Enemies/Flowers.tscn
diff options
context:
space:
mode:
Diffstat (limited to 'Scenes/Entities/Enemies/Flowers.tscn')
-rw-r--r--Scenes/Entities/Enemies/Flowers.tscn13
1 files changed, 8 insertions, 5 deletions
diff --git a/Scenes/Entities/Enemies/Flowers.tscn b/Scenes/Entities/Enemies/Flowers.tscn
index 91c54d4..82c1f70 100644
--- a/Scenes/Entities/Enemies/Flowers.tscn
+++ b/Scenes/Entities/Enemies/Flowers.tscn
@@ -1,12 +1,16 @@
[gd_scene load_steps=4 format=3 uid="uid://cplelcvju50xj"]
[ext_resource type="Script" path="res://Scenes/Entities/Enemies/Flowers.gd" id="1_a4wuh"]
-[ext_resource type="Texture2D" uid="uid://bbo73owb43h0e" path="res://icon.svg" id="2_womd7"]
[sub_resource type="CircleShape2D" id="CircleShape2D_2a0s2"]
radius = 64.0
+[sub_resource type="CircleShape2D" id="CircleShape2D_y4xm5"]
+radius = 8.0
+
[node name="Flowers" type="CharacterBody2D"]
+collision_layer = 0
+collision_mask = 136
motion_mode = 1
script = ExtResource("1_a4wuh")
@@ -17,13 +21,12 @@ collision_mask = 2
[node name="CollisionShape2D" type="CollisionShape2D" parent="DetectionArea"]
shape = SubResource("CircleShape2D_2a0s2")
-[node name="Sprite2D" type="Sprite2D" parent="."]
-scale = Vector2(0.0625, 0.0625)
-texture = ExtResource("2_womd7")
-
[node name="Timer" type="Timer" parent="."]
autostart = true
+[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
+shape = SubResource("CircleShape2D_y4xm5")
+
[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"]
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]