[gd_scene load_steps=6 format=3 uid="uid://dknt1oiyei5e5"] [ext_resource type="Script" uid="uid://dg6f6na1nn2c6" path="res://enemies/enemy.gd" id="1_l7e03"] [ext_resource type="Texture2D" uid="uid://d2thnsqp6lb4r" path="res://Assets/Characters/chibi1.png" id="2_cmo2f"] [ext_resource type="PackedScene" uid="uid://daiqb0q373002" path="res://UI/health_bar_3d.tscn" id="3_cmo2f"] [sub_resource type="SphereShape3D" id="SphereShape3D_7frlh"] [sub_resource type="SphereShape3D" id="SphereShape3D_cmo2f"] radius = 1.0 [node name="PathFollow3D" type="PathFollow3D"] [node name="EnemyA" type="CharacterBody3D" parent="."] collision_layer = 4 collision_mask = 4 script = ExtResource("1_l7e03") speed = 1 [node name="CollisionShape3D" type="CollisionShape3D" parent="EnemyA"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.289246, 0) shape = SubResource("SphereShape3D_7frlh") [node name="Sprite3D" type="Sprite3D" parent="EnemyA"] transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0, -0.0436401, 0) billboard = 2 texture = ExtResource("2_cmo2f") [node name="HealthBar3D" parent="EnemyA" instance=ExtResource("3_cmo2f")] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.6, 0) visible = false [node name="AttackRange" type="Area3D" parent="EnemyA"] collision_layer = 8 collision_mask = 8 [node name="CollisionShape3D" type="CollisionShape3D" parent="EnemyA/AttackRange"] shape = SubResource("SphereShape3D_cmo2f") debug_color = Color(0.994297, 0, 0.224345, 0.42) [node name="AttackCooldown" type="Timer" parent="EnemyA"] one_shot = true [connection signal="body_entered" from="EnemyA/AttackRange" to="EnemyA" method="_on_attack_range_body_entered"] [connection signal="body_exited" from="EnemyA/AttackRange" to="EnemyA" method="_on_attack_range_body_exited"]