[gd_scene load_steps=11 format=3 uid="uid://b8sfype1vx5ad"]

[ext_resource type="Script" path="res://Scripts/Characters/base.gd" id="1_r5ls7"]
[ext_resource type="Texture2D" uid="uid://dd1j2t2iv02w6" path="res://Nem/Nem Sprite.png" id="1_vjmx4"]

[sub_resource type="RectangleShape2D" id="RectangleShape2D_f3edd"]
size = Vector2(13, 8)

[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_43c7k"]
height = 32.0

[sub_resource type="Animation" id="Animation_7n3kb"]
resource_name = "idle"
length = 3.20002
loop_mode = 1
step = 0.2
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite2D:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 2.4, 2.6),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 1,
"values": [0, 1, 0]
}

[sub_resource type="Animation" id="Animation_snoq8"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite2D:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [0]
}

[sub_resource type="AnimationLibrary" id="AnimationLibrary_0fa8g"]
_data = {
"RESET": SubResource("Animation_snoq8"),
"idle": SubResource("Animation_7n3kb")
}

[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_0n42a"]
animation = &"idle"

[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_yww1x"]
advance_mode = 2

[sub_resource type="AnimationNodeStateMachine" id="AnimationNodeStateMachine_1sx7r"]
states/idle/node = SubResource("AnimationNodeAnimation_0n42a")
states/idle/position = Vector2(507, 100)
transitions = ["Start", "idle", SubResource("AnimationNodeStateMachineTransition_yww1x")]

[node name="NemNPC" type="CharacterBody2D"]
y_sort_enabled = true
collision_mask = 0
motion_mode = 1
script = ExtResource("1_r5ls7")

[node name="Sprite2D" type="Sprite2D" parent="."]
texture_filter = 1
position = Vector2(0, -13)
texture = ExtResource("1_vjmx4")
hframes = 2

[node name="MovementCollider" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_f3edd")

[node name="InteractBox" type="Area2D" parent="."]
collision_layer = 4
collision_mask = 2

[node name="Collider" type="CollisionShape2D" parent="InteractBox"]
position = Vector2(0, -13)
shape = SubResource("CapsuleShape2D_43c7k")
debug_color = Color(0.254902, 0.631373, 0.203922, 0.419608)

[node name="AnimationTree" type="AnimationTree" parent="."]
libraries = {
"": SubResource("AnimationLibrary_0fa8g")
}
tree_root = SubResource("AnimationNodeStateMachine_1sx7r")

[connection signal="area_entered" from="InteractBox" to="." method="_on_interact_box_area_entered"]
[connection signal="area_exited" from="InteractBox" to="." method="_on_interact_box_area_exited"]
