[gd_scene load_steps=15 format=3 uid="uid://0sofmhrl358m"] [ext_resource type="Script" uid="uid://cqd5dqafxnwl1" path="res://scene/entity/npc.gd" id="1_jegr2"] [ext_resource type="AudioStream" uid="uid://cvttds81trcoc" path="res://asset/audio/sfx/UI/click.wav" id="3_7lwt5"] [ext_resource type="Script" uid="uid://rq6w1vuhuq1m" path="res://scene/entity/audio/sfx.gd" id="4_j5svs"] [ext_resource type="PackedScene" uid="uid://c4tipnj1cr1j3" path="res://scene/entity/ux/sign.tscn" id="4_nokx4"] [ext_resource type="Texture2D" uid="uid://bwt5nxyncfuqu" path="res://asset/art/ui/action_mark/说话标识1.png" id="5_foitt"] [ext_resource type="Texture2D" uid="uid://8bnn3s72o87y" path="res://asset/art/ui/action_mark/说话标识2.png" id="6_2n6ge"] [ext_resource type="Texture2D" uid="uid://by0rbde26tyn5" path="res://asset/art/ui/action_mark/说话标识3.png" id="7_afjxr"] [sub_resource type="Animation" id="Animation_soodi"] length = 0.001 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("SpeakingSign2D/Sprite2D:offset") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 0, "values": [Vector2(60, 0)] } tracks/1/type = "value" tracks/1/imported = false tracks/1/enabled = true tracks/1/path = NodePath("SpeakingSign2D/Sprite2D:frame") tracks/1/interp = 1 tracks/1/loop_wrap = true tracks/1/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 1, "values": [0] } tracks/2/type = "value" tracks/2/imported = false tracks/2/enabled = true tracks/2/path = NodePath("SpeakingSign2D:visible") tracks/2/interp = 1 tracks/2/loop_wrap = true tracks/2/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 1, "values": [false] } [sub_resource type="Animation" id="Animation_a386j"] resource_name = "speaking" length = 1.5 loop_mode = 1 capture_included = true tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("SpeakingSign2D/Sprite2D:offset") tracks/0/interp = 2 tracks/0/loop_wrap = false tracks/0/keys = { "times": PackedFloat32Array(0, 1, 1.5), "transitions": PackedFloat32Array(1, 1, 1), "update": 0, "values": [Vector2(60, 0), Vector2(0, 0), Vector2(0, 0)] } tracks/1/type = "value" tracks/1/imported = false tracks/1/enabled = true tracks/1/path = NodePath("SpeakingSign2D/Sprite2D:frame") tracks/1/interp = 1 tracks/1/loop_wrap = false tracks/1/keys = { "times": PackedFloat32Array(0, 1.5), "transitions": PackedFloat32Array(1, 1), "update": 2, "values": [0, 2] } tracks/2/type = "value" tracks/2/imported = false tracks/2/enabled = true tracks/2/path = NodePath("SpeakingSign2D:visible") tracks/2/interp = 1 tracks/2/loop_wrap = true tracks/2/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 1, "values": [true] } [sub_resource type="AnimationLibrary" id="AnimationLibrary_pjqf1"] _data = { &"RESET": SubResource("Animation_soodi"), &"speaking": SubResource("Animation_a386j") } [sub_resource type="Gradient" id="Gradient_ap7b2"] colors = PackedColorArray(1, 1, 1, 1, 1, 1, 1, 1) [sub_resource type="GradientTexture2D" id="GradientTexture2D_7lwt5"] gradient = SubResource("Gradient_ap7b2") width = 40 height = 100 [sub_resource type="SpriteFrames" id="SpriteFrames_k7dca"] animations = [{ "frames": [{ "duration": 1.0, "texture": ExtResource("5_foitt") }, { "duration": 1.0, "texture": ExtResource("6_2n6ge") }, { "duration": 1.0, "texture": ExtResource("7_afjxr") }], "loop": true, "name": &"default", "speed": 5.0 }] [sub_resource type="RectangleShape2D" id="RectangleShape2D_4fuic"] resource_local_to_scene = true size = Vector2(30, 100) [node name="Npc" type="AnimatedSprite2D"] light_mask = 5 script = ExtResource("1_jegr2") dialogue_title = "" [node name="Sfx" type="AudioStreamPlayer" parent="."] unique_name_in_owner = true stream = ExtResource("3_7lwt5") bus = &"game_sfx" script = ExtResource("4_j5svs") [node name="Sign" parent="." instance=ExtResource("4_nokx4")] unique_name_in_owner = true offset_top = -60.0 offset_bottom = -60.0 display_sign = false [node name="SpeakingAnimationPlayer" type="AnimationPlayer" parent="."] unique_name_in_owner = true libraries = { &"": SubResource("AnimationLibrary_pjqf1") } [node name="PointLight2D" type="PointLight2D" parent="."] unique_name_in_owner = true visible = false position = Vector2(0, -42) blend_mode = 2 range_item_cull_mask = 16 texture = SubResource("GradientTexture2D_7lwt5") [node name="SpeakingSign2D" type="Node2D" parent="."] unique_name_in_owner = true visible = false modulate = Color(0.753984, 0.753984, 0.753984, 1) position = Vector2(0, -60) scale = Vector2(0.07, 0.07) [node name="Sprite2D" type="AnimatedSprite2D" parent="SpeakingSign2D"] light_mask = 16 sprite_frames = SubResource("SpriteFrames_k7dca") offset = Vector2(60, 0) [node name="Area2D" type="Area2D" parent="."] unique_name_in_owner = true collision_layer = 0 [node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"] unique_name_in_owner = true shape = SubResource("RectangleShape2D_4fuic")