frame-of-mind/src/dev-util/testing.tscn

74 lines
1.9 KiB
Plaintext
Raw Normal View History

2024-02-11 21:34:34 +00:00
[gd_scene load_steps=5 format=3 uid="uid://bigr0lnen1xdh"]
2023-07-01 13:45:51 +00:00
2024-02-11 21:34:34 +00:00
[sub_resource type="GDScript" id="GDScript_5hy5u"]
script/source = "extends Node3D
2023-07-01 13:45:51 +00:00
2024-02-11 21:34:34 +00:00
# Called when the node enters the scene tree for the first time.
func _ready():
await get_tree().create_timer(1).timeout
$AnimationPlayer.advance(10)
2023-07-01 13:45:51 +00:00
2024-02-11 21:34:34 +00:00
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass
2023-07-01 13:45:51 +00:00
2024-02-11 21:34:34 +00:00
func _on_animation_player_animation_finished(anim_name):
print(\"yay\")
2023-07-01 13:45:51 +00:00
"
[sub_resource type="Animation" id="Animation_kdstq"]
length = 0.001
2024-02-11 21:34:34 +00:00
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Camera3D:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
2024-02-11 21:34:34 +00:00
"update": 0,
"values": [Vector3(0, -0.058, 0.77)]
2024-02-11 21:34:34 +00:00
}
[sub_resource type="Animation" id="Animation_wjx7h"]
resource_name = "test"
length = 5.0
2024-02-11 21:34:34 +00:00
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Camera3D:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 5),
"transitions": PackedFloat32Array(1, 1),
2024-02-11 21:34:34 +00:00
"update": 0,
"values": [Vector3(0, -0.058, 0.77), Vector3(0, -0.058, 10.97)]
2024-02-11 21:34:34 +00:00
}
2024-02-11 21:34:34 +00:00
[sub_resource type="AnimationLibrary" id="AnimationLibrary_l6qbr"]
_data = {
"RESET": SubResource("Animation_kdstq"),
"test": SubResource("Animation_wjx7h")
}
[node name="Node3D" type="Node3D"]
script = SubResource("GDScript_5hy5u")
2023-07-01 13:45:51 +00:00
[node name="Camera3D" type="Camera3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 0.987688, -0.156434, 0, 0.156434, 0.987688, 0, -0.058, 0.77)
fov = 18.0
2024-02-11 21:34:34 +00:00
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_l6qbr")
}
autoplay = "test"
[connection signal="animation_finished" from="AnimationPlayer" to="." method="_on_animation_player_animation_finished"]