mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 11:15:33 +00:00
50 lines
1.7 KiB
Text
50 lines
1.7 KiB
Text
|
|
[gd_scene load_steps=8 format=3 uid="uid://dqr6myj0yaqvd"]
|
||
|
|
|
||
|
|
[ext_resource type="Script" uid="uid://d0a0o50j82eo6" path="res://Scripts/Activables/ScriptableBase.cs" id="1_48f0r"]
|
||
|
|
[ext_resource type="Script" uid="uid://dmo0pw7natoja" path="res://Scripts/Interactables/AreaTrigger.cs" id="2_ms26s"]
|
||
|
|
[ext_resource type="Texture2D" uid="uid://bs5fsrx07bolj" path="res://Sprites/Actors/MovementSensor.png" id="3_7s6mr"]
|
||
|
|
|
||
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_1nht3"]
|
||
|
|
size = Vector2(4, 62)
|
||
|
|
|
||
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_a8ahg"]
|
||
|
|
atlas = ExtResource("3_7s6mr")
|
||
|
|
region = Rect2(0, 0, 8, 8)
|
||
|
|
|
||
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_5aqpj"]
|
||
|
|
atlas = ExtResource("3_7s6mr")
|
||
|
|
region = Rect2(8, 0, 8, 8)
|
||
|
|
|
||
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_hqdqa"]
|
||
|
|
animations = [{
|
||
|
|
"frames": [{
|
||
|
|
"duration": 1.0,
|
||
|
|
"texture": SubResource("AtlasTexture_a8ahg")
|
||
|
|
}, {
|
||
|
|
"duration": 1.0,
|
||
|
|
"texture": SubResource("AtlasTexture_5aqpj")
|
||
|
|
}],
|
||
|
|
"loop": true,
|
||
|
|
"name": &"default",
|
||
|
|
"speed": 5.0
|
||
|
|
}]
|
||
|
|
|
||
|
|
[node name="MovementSensorLonger" type="Node2D"]
|
||
|
|
script = ExtResource("1_48f0r")
|
||
|
|
|
||
|
|
[node name="AreaTrigger" type="Area2D" parent="."]
|
||
|
|
collision_layer = 4
|
||
|
|
collision_mask = 2
|
||
|
|
script = ExtResource("2_ms26s")
|
||
|
|
OneTime = true
|
||
|
|
|
||
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="AreaTrigger"]
|
||
|
|
position = Vector2(0, 31)
|
||
|
|
shape = SubResource("RectangleShape2D_1nht3")
|
||
|
|
|
||
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||
|
|
sprite_frames = SubResource("SpriteFrames_hqdqa")
|
||
|
|
autoplay = "default"
|
||
|
|
|
||
|
|
[connection signal="Activated" from="AreaTrigger" to="." method="Start"]
|
||
|
|
[connection signal="area_entered" from="AreaTrigger" to="AreaTrigger" method="_on_area_entered"]
|