Raise-Your-Wand/Scenes/Animations/rockThrowAnim.tscn

135 lines
3.8 KiB
Plaintext
Raw Normal View History

[gd_scene load_steps=11 format=3 uid="uid://c44hesqr12wxd"]
2024-05-03 19:45:30 -04:00
[ext_resource type="Script" path="res://Scripts/Animations/rockThrowAnim.gd" id="1_owh0v"]
[ext_resource type="Texture2D" uid="uid://dwsd0hggrxbdq" path="res://Sprites/Animations/Rock Pack/Rocks 64x64 by Captainskeleto.png" id="2_addwy"]
[sub_resource type="Curve2D" id="Curve2D_m36l3"]
_data = {
"points": PackedVector2Array(0, 0, 0, 0, 30, 39, 0, 0, 0, 0, 69, 45, 0, 0, 0, 0, 114, 61, 0, 0, 0, 0, 164, 98, 0, 0, 0, 0, 217, 179, 0, 0, 0, 0, 258, 318, 0, 0, 0, 0, 272, 436, 0, 0, 0, 0, 281, 600)
}
point_count = 8
[sub_resource type="AtlasTexture" id="AtlasTexture_wqvpx"]
atlas = ExtResource("2_addwy")
region = Rect2(128, 192, 64, 64)
[sub_resource type="Curve2D" id="Curve2D_gdix6"]
_data = {
"points": PackedVector2Array(0, 0, 0, 0, 371, 664, 0, 0, 0, 0, 370, 481, 0, 0, 0, 0, 373, 311, 0, 0, 0, 0, 882, 362)
}
point_count = 4
2024-05-03 19:45:30 -04:00
[sub_resource type="Animation" id="Animation_7dh1k"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("TextureRect:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(342, 645)]
}
2024-05-03 19:45:30 -04:00
[sub_resource type="Animation" id="Animation_cfsn4"]
resource_name = "attackSegment1"
length = 0.5
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("TextureRect:position")
tracks/0/interp = 1
tracks/0/loop_wrap = false
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.49),
"transitions": PackedFloat32Array(1, 1),
"update": 2,
"values": [Vector2(342, 645), Vector2(342, 440)]
}
2024-05-03 19:45:30 -04:00
[sub_resource type="Animation" id="Animation_uphdx"]
resource_name = "attackSegment2"
length = 0.5
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("TextureRect:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector2(342, 440), Vector2(342, 280)]
}
[sub_resource type="Animation" id="Animation_mlgwv"]
resource_name = "attackSegment3"
length = 0.23
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("TextureRect:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.23),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector2(342, 280), Vector2(852, 331)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_cg24k"]
_data = {
"RESET": SubResource("Animation_7dh1k"),
"attackSegment1": SubResource("Animation_cfsn4"),
"attackSegment2": SubResource("Animation_uphdx"),
"attackSegment3": SubResource("Animation_mlgwv")
}
[node name="RockThrowAnim" type="Node2D"]
script = ExtResource("1_owh0v")
[node name="Path2D2" type="Path2D" parent="."]
position = Vector2(339, 632)
2024-05-03 19:45:30 -04:00
curve = SubResource("Curve2D_m36l3")
[node name="PathFollow2D" type="PathFollow2D" parent="Path2D2"]
2024-05-03 19:45:30 -04:00
position = Vector2(30, 39)
rotation = 0.152649
rotates = false
loop = false
[node name="TextureRect" type="TextureRect" parent="."]
2024-05-03 19:45:30 -04:00
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = 342.0
offset_top = 645.0
offset_right = 406.0
offset_bottom = 709.0
2024-05-03 19:45:30 -04:00
grow_horizontal = 2
grow_vertical = 2
pivot_offset = Vector2(31.8413, 32.0651)
texture = SubResource("AtlasTexture_wqvpx")
[node name="Path2D" type="Path2D" parent="."]
curve = SubResource("Curve2D_gdix6")
[node name="PathFollow2D" type="PathFollow2D" parent="Path2D"]
position = Vector2(371, 664)
rotates = false
loop = false
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_cg24k")
}
[connection signal="animation_finished" from="AnimationPlayer" to="." method="animFinished"]