Changed elevator to be child of path

This commit is contained in:
Marco 2025-03-11 16:17:29 +01:00
commit 9bbc631dd3
11 changed files with 117 additions and 116 deletions

View file

@ -1,7 +1,7 @@
[gd_scene load_steps=14 format=3 uid="uid://d1h48wgasakk4"]
[gd_scene load_steps=15 format=3 uid="uid://d1h48wgasakk4"]
[ext_resource type="Script" uid="uid://d0a0o50j82eo6" path="res://Scripts/Activables/ScriptableBase.cs" id="1_2d4he"]
[ext_resource type="PackedScene" uid="uid://crph24e6e0v0q" path="res://Scenes/Interactable/Control_Pad.tscn" id="2_2xddf"]
[ext_resource type="Script" uid="uid://duhodrhcnoslh" path="res://Scripts/Interactables/Switch.cs" id="1_vly4n"]
[ext_resource type="Texture2D" uid="uid://bpc66amnvvkrn" path="res://Sprites/AlarmBox.png" id="2_slydm"]
[ext_resource type="Script" uid="uid://donxnd50p7dm8" path="res://Scripts/Resources/Events/AlarmDisableEvent.cs" id="2_umsjn"]
[ext_resource type="Script" uid="uid://daqdq17qiessy" path="res://Scripts/Components/AlarmSpriteSwitcher.cs" id="5_7g2v5"]
@ -10,6 +10,8 @@
script = ExtResource("2_umsjn")
WaitForCompletion = true
[sub_resource type="CircleShape2D" id="CircleShape2D_m2axc"]
[sub_resource type="AtlasTexture" id="AtlasTexture_enwfk"]
atlas = ExtResource("2_slydm")
region = Rect2(48, 0, 16, 16)
@ -65,12 +67,16 @@ animations = [{
"speed": 5.0
}]
[node name="AlarmBox" type="Node2D" groups=["Interactable"]]
script = ExtResource("1_2d4he")
Events = Array[Object]([SubResource("Resource_hppa0")])
[node name="AlarmBox" type="Area2D" node_paths=PackedStringArray("Targets") groups=["Interactable"]]
script = ExtResource("1_vly4n")
Targets = [NodePath("AlarmBox")]
[node name="ControlPad" parent="." node_paths=PackedStringArray("Target") instance=ExtResource("2_2xddf")]
Target = NodePath("..")
[node name="AlarmBox" type="Node2D" parent="." groups=["Interactable"]]
script = ExtResource("1_2d4he")
Events = [SubResource("Resource_hppa0")]
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_m2axc")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
sprite_frames = SubResource("SpriteFrames_kbgi5")