courier/scenes/item.tscn

31 lines
1.3 KiB
Plaintext

[gd_scene load_steps=6 format=3 uid="uid://bpkffb4ww8y1m"]
[ext_resource type="Script" path="res://scripts/item.gd" id="1_akiij"]
[ext_resource type="Texture2D" uid="uid://dcbrw64m2btod" path="res://sprites/runningshoes.png" id="2_161ch"]
[ext_resource type="PackedScene" uid="uid://dpwqurhly8osd" path="res://scenes/interactible_manager.tscn" id="3_t5lie"]
[ext_resource type="PackedScene" uid="uid://sk2uc8hcxhcj" path="res://scenes/physical_dialogue.tscn" id="4_q3xmh"]
[sub_resource type="CircleShape2D" id="CircleShape2D_mxuxo"]
radius = 116.44
[node name="Item" type="Area2D"]
script = ExtResource("1_akiij")
[node name="Sprite2D" type="Sprite2D" parent="."]
scale = Vector2(0.5, 0.5)
texture = ExtResource("2_161ch")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_mxuxo")
[node name="InteractibleManager" parent="." node_paths=PackedStringArray("ItemShown") instance=ExtResource("3_t5lie")]
ItemShown = NodePath("../Dialogue")
[node name="Dialogue" parent="." instance=ExtResource("4_q3xmh")]
offset_top = -202.455
offset_bottom = -162.455
DefaultText = "Running Shoes"
[connection signal="body_entered" from="." to="InteractibleManager" method="_on_body_entered"]
[connection signal="body_exited" from="." to="InteractibleManager" method="_on_body_exited"]