[gd_scene format=3 uid="uid://cg808l58igcrq"] [ext_resource type="Script" uid="uid://cml2xy7flhfn6" path="res://scripts/Enemy.cs" id="1_4gyqm"] [ext_resource type="Texture2D" uid="uid://mxuhmaj6nqfw" path="res://2D Pixel Dungeon Asset Pack/Character_animation/monsters_idle/vampire/v2/vampire_v2_1.png" id="2_qi2p4"] [ext_resource type="Texture2D" uid="uid://cn7wcj1bmd8a6" path="res://2D Pixel Dungeon Asset Pack/items and trap_animation/flasks/flasks_4_3.png" id="3_qi2p4"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_ovjgd"] size = Vector2(12, 14) [sub_resource type="RectangleShape2D" id="RectangleShape2D_0m7y3"] size = Vector2(5, 15) [node name="Enemy" type="CharacterBody2D" unique_id=575877799 node_paths=PackedStringArray("WeaponPivot", "WeaponHitbox")] collision_layer = 4 collision_mask = 5 script = ExtResource("1_4gyqm") AttackRange = 20.0 SwingAngle = 300.0 WeaponPivot = NodePath("WeaponPivot") WeaponHitbox = NodePath("WeaponPivot/Area2D") [node name="Sprite2D" type="Sprite2D" parent="." unique_id=2046016517] texture = ExtResource("2_qi2p4") [node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1799666271] shape = SubResource("RectangleShape2D_ovjgd") [node name="NavigationAgent2D" type="NavigationAgent2D" parent="." unique_id=1735622426] path_desired_distance = 8.0 path_max_distance = 20.0 radius = 40.0 neighbor_distance = 200.0 debug_enabled = true debug_path_custom_color = Color(1, 0.039215688, 1, 1) [node name="WeaponPivot" type="Node2D" parent="." unique_id=221650450] [node name="Area2D" type="Area2D" parent="WeaponPivot" unique_id=302241973] collision_layer = 4 collision_mask = 3 [node name="Sprite2D" type="Sprite2D" parent="WeaponPivot/Area2D" unique_id=1153120816] position = Vector2(11, 4.7683716e-07) rotation = 1.5707964 scale = Vector2(0.49999997, 1.375) texture = ExtResource("3_qi2p4") [node name="CollisionShape2D" type="CollisionShape2D" parent="WeaponPivot/Area2D" unique_id=1475055519] position = Vector2(8.499999, 0.5000012) rotation = 1.5707964 shape = SubResource("RectangleShape2D_0m7y3")