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

18 lines
857 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://e8ybb7seykdx" path="res://resources/sprites/player/player.tres" id="2_x8mtv"]
[node name="Npc" type="Node2D"]
script = ExtResource("1_xeo83")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
sprite_frames = ExtResource("2_x8mtv")
[node name="Interactable" parent="." instance=ExtResource("2_hcfxj")]
SpriteOffset = Vector2(0, -25)
AreaRadius = 20.0
[connection signal="PlayerLeft" from="Interactable" to="." method="_on_interactable_player_left"]
[connection signal="PlayerNearBy" from="Interactable" to="." method="_on_interactable_player_near_by"]