chill-jam-10-2024/prefabs/NPC.tscn

19 lines
884 B
Text

[gd_scene load_steps=4 format=3 uid="uid://c5ndo6b0unkst"]
[ext_resource type="Script" path="res://scripts/NPC.cs" id="1_xeo83"]
[ext_resource type="PackedScene" uid="uid://x6pqolxtgwvy" path="res://prefabs/Interactable.tscn" id="2_hcfxj"]
[ext_resource type="SpriteFrames" uid="uid://dj0263g1jrmtl" path="res://resources/sprites/npcs/template.tres" id="2_r10xf"]
[node name="Npc" type="Node2D"]
script = ExtResource("1_xeo83")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
sprite_frames = ExtResource("2_r10xf")
frame_progress = 0.100142
[node name="Interactable" parent="." instance=ExtResource("2_hcfxj")]
SpriteOffset = Vector2(0, -35)
AreaRadius = 60.0
[connection signal="PlayerLeft" from="Interactable" to="." method="_on_interactable_player_left"]
[connection signal="PlayerNearBy" from="Interactable" to="." method="_on_interactable_player_near_by"]