[gd_scene load_steps=6 format=3 uid="uid://bou5xlp2ob68c"] [ext_resource type="Script" uid="uid://dg6f6na1nn2c6" path="res://enemies/enemy.gd" id="1_156y0"] [ext_resource type="Texture2D" uid="uid://dqxsaoeb5kcxp" path="res://Assets/Characters/72 Character Free/Char 3/Character 9.png" id="2_156y0"] [ext_resource type="PackedScene" uid="uid://daiqb0q373002" path="res://UI/health_bar_3d.tscn" id="3_4pr72"] [sub_resource type="SphereShape3D" id="SphereShape3D_7frlh"] [sub_resource type="SphereShape3D" id="SphereShape3D_cmo2f"] radius = 1.0 [node name="PathFollow3D" type="PathFollow3D"] [node name="EnemyC" type="CharacterBody3D" parent="."] collision_layer = 4 collision_mask = 4 script = ExtResource("1_156y0") speed = 1 base_attack_damage = 5 max_life = 20 [node name="CollisionShape3D" type="CollisionShape3D" parent="EnemyC"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.0491967, 0) shape = SubResource("SphereShape3D_7frlh") [node name="Sprite3D" type="Sprite3D" parent="EnemyC"] transform = Transform3D(1.8, 0, 0, 0, 1.8, 0, 0, 0, 1.8, 0, -0.0141975, 0) billboard = 2 texture = ExtResource("2_156y0") hframes = 12 vframes = 22 [node name="HealthBar3D" parent="EnemyC" instance=ExtResource("3_4pr72")] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.6, 0) visible = false [node name="AttackRange" type="Area3D" parent="EnemyC"] collision_layer = 8 collision_mask = 8 [node name="CollisionShape3D" type="CollisionShape3D" parent="EnemyC/AttackRange"] shape = SubResource("SphereShape3D_cmo2f") debug_color = Color(0.994297, 0, 0.224345, 0.42) [node name="AttackCooldown" type="Timer" parent="EnemyC"] one_shot = true [connection signal="body_entered" from="EnemyC/AttackRange" to="EnemyC" method="_on_attack_range_body_entered"] [connection signal="body_exited" from="EnemyC/AttackRange" to="EnemyC" method="_on_attack_range_body_exited"]