Extended dialogic toggle
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=46 format=3 uid="uid://dfvgp1my5rydh"]
|
||||
[gd_scene load_steps=47 format=3 uid="uid://dfvgp1my5rydh"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://c34012j5ukiuf" path="res://art/animation/Yeli2D/F01-Yeli_Idle/0001.png" id="1_03m0b"]
|
||||
[ext_resource type="Script" uid="uid://d2486x6upmwqq" path="res://scripts/GdScript/dialogic_starter.gd" id="1_at1n1"]
|
||||
@@ -43,6 +43,7 @@
|
||||
[ext_resource type="Texture2D" uid="uid://droj8w1mbm5k3" path="res://art/animation/Yeli2D/F02-Yeli_Talk/0019.png" id="39_vg7xi"]
|
||||
[ext_resource type="Texture2D" uid="uid://by5vtadhdwwag" path="res://art/animation/Yeli2D/F02-Yeli_Talk/0020.png" id="40_ipyxb"]
|
||||
[ext_resource type="PackedScene" uid="uid://cqc72e4hq6bcd" path="res://prefabs/interactions/interaction_area_2d.tscn" id="42_ahrat"]
|
||||
[ext_resource type="Script" uid="uid://cvkw4qd2hxksi" path="res://scripts/GdScript/dialogic_toggle.gd" id="44_aqu1t"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_at1n1"]
|
||||
resource_local_to_scene = true
|
||||
@@ -182,18 +183,23 @@ animations = [{
|
||||
}]
|
||||
|
||||
[node name="Yeli" type="Node2D"]
|
||||
y_sort_enabled = true
|
||||
script = ExtResource("1_at1n1")
|
||||
|
||||
[node name="InteractionArea" parent="." instance=ExtResource("42_ahrat")]
|
||||
scale = Vector2(1.72, 1.72)
|
||||
scale = Vector2(2.805, 2.805)
|
||||
|
||||
[node name="CollisionShape3D" parent="InteractionArea/Area2D" index="0"]
|
||||
shape = SubResource("CircleShape2D_at1n1")
|
||||
|
||||
[node name="Label" parent="InteractionArea" index="1"]
|
||||
visible = true
|
||||
offset_left = -48.2558
|
||||
offset_right = 4.74419
|
||||
top_level = true
|
||||
custom_minimum_size = Vector2(10, 10)
|
||||
offset_left = -94.0
|
||||
offset_top = 83.0
|
||||
offset_right = -39.65
|
||||
offset_bottom = 113.0
|
||||
scale = Vector2(3, 3)
|
||||
text = "[E] talk"
|
||||
|
||||
[node name="TalkingControl" type="Node2D" parent="." node_paths=PackedStringArray("_sprite")]
|
||||
@@ -203,11 +209,17 @@ _timelinesToPlay = PackedStringArray("yeli_intro_01")
|
||||
|
||||
[node name="AnimatedSprite" type="AnimatedSprite2D" parent="TalkingControl"]
|
||||
y_sort_enabled = true
|
||||
position = Vector2(0, 450)
|
||||
sprite_frames = SubResource("SpriteFrames_f6hss")
|
||||
animation = &"idle"
|
||||
frame_progress = 0.437711
|
||||
offset = Vector2(0, -450)
|
||||
|
||||
[node name="DialogicToggle" type="Node2D" parent="."]
|
||||
script = ExtResource("44_aqu1t")
|
||||
|
||||
[connection signal="Interacted" from="InteractionArea" to="TalkingControl" method="ToggleTalking"]
|
||||
[connection signal="Talking" from="TalkingControl" to="." method="open"]
|
||||
[connection signal="timelineEnded" from="DialogicToggle" to="TalkingControl" method="ToggleTalking"]
|
||||
|
||||
[editable path="InteractionArea"]
|
||||
|
||||
Reference in New Issue
Block a user