the-lost-memory/project/Fairy2.tscn

61 lines
1.9 KiB
Plaintext
Raw Permalink Normal View History

2022-11-17 17:52:05 +00:00
[gd_scene load_steps=9 format=2]
[ext_resource path="res://sprites/fairy2.png" type="Texture" id=1]
[ext_resource path="res://Fairy.gd" type="Script" id=2]
[sub_resource type="AtlasTexture" id=5]
atlas = ExtResource( 1 )
region = Rect2( 0, 0, 20, 26 )
[sub_resource type="AtlasTexture" id=6]
atlas = ExtResource( 1 )
region = Rect2( 20, 0, 20, 26 )
[sub_resource type="SpriteFrames" id=7]
animations = [ {
"frames": [ SubResource( 5 ), SubResource( 6 ) ],
"loop": true,
"name": "default",
"speed": 4.0
} ]
[sub_resource type="RectangleShape2D" id=4]
extents = Vector2( 6, 10.5 )
[sub_resource type="RectangleShape2D" id=8]
extents = Vector2( 125, 119 )
[sub_resource type="RectangleShape2D" id=9]
extents = Vector2( 61, 62 )
[node name="Fairy2" type="KinematicBody2D"]
script = ExtResource( 2 )
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
frames = SubResource( 7 )
frame = 1
playing = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( 3, -0.5 )
shape = SubResource( 4 )
[node name="PlayerIndicator" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="PlayerIndicator"]
shape = SubResource( 8 )
[node name="DangerIndicator" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="DangerIndicator"]
shape = SubResource( 9 )
[node name="Timer" type="Timer" parent="."]
[connection signal="tree_exiting" from="." to="." method="_on_Fairy1_tree_exiting"]
[connection signal="body_entered" from="PlayerIndicator" to="." method="_on_PlayerIndicator_body_entered"]
[connection signal="body_exited" from="PlayerIndicator" to="." method="_on_PlayerIndicator_body_exited"]
[connection signal="body_entered" from="DangerIndicator" to="." method="_on_DangerIndicator_body_entered"]
[connection signal="body_exited" from="DangerIndicator" to="." method="_on_DangerIndicator_body_exited"]
[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]