From d192b1546ab39180cdc28d2621c117539e3d26d6 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Wed, 1 May 2024 09:41:02 +0200 Subject: update --- Scenes/Entities/Enemies/Flowers.tscn | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Scenes/Entities/Enemies/Flowers.tscn (limited to 'Scenes/Entities/Enemies/Flowers.tscn') diff --git a/Scenes/Entities/Enemies/Flowers.tscn b/Scenes/Entities/Enemies/Flowers.tscn new file mode 100644 index 0000000..91c54d4 --- /dev/null +++ b/Scenes/Entities/Enemies/Flowers.tscn @@ -0,0 +1,29 @@ +[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 + +[node name="Flowers" type="CharacterBody2D"] +motion_mode = 1 +script = ExtResource("1_a4wuh") + +[node name="DetectionArea" type="Area2D" parent="."] +collision_layer = 64 +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 + +[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"] -- cgit v1.2.3