godot-start/scene/demo10_animation/animation.tscn

116 lines
3.5 KiB
Plaintext
Raw Normal View History

2021-10-07 01:31:11 +00:00
[gd_scene load_steps=14 format=2]
2021-10-05 16:32:06 +00:00
2021-10-07 06:13:18 +00:00
[ext_resource path="res://scene/demo10_animation/image/run-6.png" type="Texture" id=1]
[ext_resource path="res://scene/demo10_animation/image/run-5.png" type="Texture" id=2]
[ext_resource path="res://scene/demo10_animation/image/run-7.png" type="Texture" id=3]
[ext_resource path="res://icon.png" type="Texture" id=4]
[ext_resource path="res://scene/demo10_animation/image/run-8.png" type="Texture" id=5]
[ext_resource path="res://scene/demo10_animation/image/player.png" type="Texture" id=6]
[ext_resource path="res://scene/demo10_animation/image/run-4.png" type="Texture" id=7]
[ext_resource path="res://scene/demo10_animation/image/run-3.png" type="Texture" id=8]
[ext_resource path="res://scene/demo10_animation/image/run-1.png" type="Texture" id=9]
[ext_resource path="res://scene/demo10_animation/image/run-2.png" type="Texture" id=10]
2021-10-05 16:32:06 +00:00
[sub_resource type="Animation" id=1]
resource_name = "my_animation_1"
length = 2.0
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath("icon:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 2 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Vector2( 107.526, 131.125 ), Vector2( 863.129, 129.537 ) ]
}
tracks/1/type = "value"
tracks/1/path = NodePath("icon:rotation_degrees")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"times": PoolRealArray( 0, 2 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ 0.0, 360.0 ]
}
tracks/2/type = "value"
tracks/2/path = NodePath("icon:scale")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/keys = {
"times": PoolRealArray( 0, 2 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Vector2( 1, 1 ), Vector2( 3, 3 ) ]
}
2021-10-07 06:13:18 +00:00
[sub_resource type="Animation" id=2]
2021-10-07 01:31:11 +00:00
resource_name = "animation_2"
length = 0.6
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath("player:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.1, 0.2, 0.3, 0.4, 0.5 ),
"transitions": PoolRealArray( 1, 1, 1, 1, 1, 1 ),
"update": 1,
"values": [ 0, 1, 2, 3, 4, 5 ]
}
2021-10-07 06:13:18 +00:00
[sub_resource type="SpriteFrames" id=3]
2021-10-05 16:32:06 +00:00
animations = [ {
2021-10-07 06:13:18 +00:00
"frames": [ ExtResource( 9 ), ExtResource( 10 ), ExtResource( 8 ), ExtResource( 7 ), ExtResource( 2 ), ExtResource( 1 ), ExtResource( 3 ), ExtResource( 5 ) ],
2021-10-05 16:32:06 +00:00
"loop": true,
"name": "default",
"speed": 7.0
} ]
[node name="Node2D" type="Node2D"]
[node name="Animation_1" type="Node2D" parent="."]
[node name="icon" type="Sprite" parent="Animation_1"]
2021-10-07 01:31:11 +00:00
position = Vector2( 315.475, 141.204 )
2021-10-05 16:32:06 +00:00
rotation = 6.28319
2021-10-07 01:31:11 +00:00
scale = Vector2( 1.06651, 1.06651 )
2021-10-07 06:13:18 +00:00
texture = ExtResource( 4 )
2021-10-05 16:32:06 +00:00
[node name="AnimationPlayer" type="AnimationPlayer" parent="Animation_1"]
autoplay = "my_animation_1"
anims/my_animation_1 = SubResource( 1 )
[node name="Animation_2" type="Node2D" parent="."]
[node name="player" type="Sprite" parent="Animation_2"]
2021-10-07 01:31:11 +00:00
position = Vector2( 317.132, 336.313 )
scale = Vector2( 1.86179, 1.57452 )
2021-10-07 06:13:18 +00:00
texture = ExtResource( 6 )
2021-10-07 01:31:11 +00:00
hframes = 60
[node name="AnimationPlayer" type="AnimationPlayer" parent="Animation_2"]
autoplay = "animation_2"
2021-10-07 06:13:18 +00:00
anims/animation_2 = SubResource( 2 )
2021-10-05 16:32:06 +00:00
[node name="Animation_3" type="Node2D" parent="."]
position = Vector2( 308.251, 522.067 )
__meta__ = {
"_edit_group_": true
}
[node name="AnimatedSprite" type="AnimatedSprite" parent="Animation_3"]
2021-10-07 06:13:18 +00:00
frames = SubResource( 3 )
2021-10-07 01:31:11 +00:00
frame = 5
2021-10-05 16:32:06 +00:00
playing = true