65 lines
1.8 KiB
Plaintext
65 lines
1.8 KiB
Plaintext
[gd_scene load_steps=6 format=3 uid="uid://dkdigqo1emefi"]
|
|
|
|
[ext_resource type="Script" uid="uid://bdhb15mqnjfg2" path="res://Char/Char_Components/Petals_Leaves/sakura_fall.gd" id="2_2mj48"]
|
|
[ext_resource type="Texture2D" uid="uid://c2ncysl2v71nn" path="res://Char/Char_Components/Petals_Leaves/Sakura.png" id="2_4qm7o"]
|
|
|
|
[sub_resource type="Animation" id="Animation_cppck"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath(".:region_rect")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [Rect2(0, 0, 6, 6)]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_630tj"]
|
|
resource_name = "move"
|
|
length = 0.6
|
|
loop_mode = 2
|
|
step = 0.1
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath(".:region_rect")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.2, 0.4, 0.6),
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1),
|
|
"update": 1,
|
|
"values": [Rect2(0, 0, 6, 6), Rect2(6, 0, 6, 6), Rect2(12, 0, 6, 6), Rect2(18, 0, 6, 6)]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_hi3eq"]
|
|
_data = {
|
|
&"RESET": SubResource("Animation_cppck"),
|
|
&"move": SubResource("Animation_630tj")
|
|
}
|
|
|
|
[node name="Sakura_Fall" type="Node2D"]
|
|
z_index = 3
|
|
script = ExtResource("2_2mj48")
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
|
texture = ExtResource("2_4qm7o")
|
|
region_enabled = true
|
|
region_rect = Rect2(0, 0, 6, 6)
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
root_node = NodePath("../Sprite2D")
|
|
libraries = {
|
|
"": SubResource("AnimationLibrary_hi3eq")
|
|
}
|
|
autoplay = "move"
|
|
|
|
[node name="RayCast2D" type="RayCast2D" parent="."]
|
|
target_position = Vector2(0, 3)
|
|
collision_mask = 23592960
|
|
hit_from_inside = true
|