Files
Archipelago-Game/Entities/Map Objects/Mechanisms/pressure_plate.tscn
2026-03-17 13:45:35 -06:00

53 lines
1.6 KiB
Plaintext

[gd_scene format=3 uid="uid://b5t4h63xhuods"]
[ext_resource type="Script" uid="uid://cxt7ht66jiac8" path="res://Entities/Map Objects/Mechanisms/Scripts/pressure_plate.gd" id="1_po2h8"]
[ext_resource type="Texture2D" uid="uid://dhtolttw5h33" path="res://Assets/Spritesheets/Mechanisms/Pressure Plate.png" id="1_ulio5"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ulio5"]
size = Vector2(12, 10)
[sub_resource type="AtlasTexture" id="AtlasTexture_ulio5"]
atlas = ExtResource("1_ulio5")
region = Rect2(16, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_po2h8"]
atlas = ExtResource("1_ulio5")
region = Rect2(0, 0, 16, 16)
[sub_resource type="SpriteFrames" id="SpriteFrames_50pip"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_ulio5")
}],
"loop": true,
"name": &"activated",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_po2h8")
}],
"loop": false,
"name": &"default",
"speed": 5.0
}]
[node name="PressurePlate" type="Area2D" unique_id=1213720400]
y_sort_enabled = true
collision_layer = 0
script = ExtResource("1_po2h8")
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=180813085]
position = Vector2(0, -1)
shape = SubResource("RectangleShape2D_ulio5")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="." unique_id=3182720]
y_sort_enabled = true
position = Vector2(0, -7)
sprite_frames = SubResource("SpriteFrames_50pip")
autoplay = "default"
offset = Vector2(0, 7)
[connection signal="body_entered" from="." to="." method="_on_body_entered"]