66 lines
2.3 KiB
Plaintext
66 lines
2.3 KiB
Plaintext
[gd_scene load_steps=13 format=2]
|
|
|
|
[ext_resource path="res://scripts/item_balloon.gd" type="Script" id=1]
|
|
[ext_resource path="res://assets/item_balloon/item_balloon.glb" type="PackedScene" id=2]
|
|
[ext_resource path="res://scenes/item.tscn" type="PackedScene" id=3]
|
|
[ext_resource path="res://item_types/ingot.tres" type="Resource" id=4]
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id=1]
|
|
animation = "Balloon Bounce"
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id=2]
|
|
animation = "Balloon Idle"
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id=3]
|
|
animation = "Balloon Reset"
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id=4]
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id=5]
|
|
switch_mode = 2
|
|
auto_advance = true
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id=6]
|
|
switch_mode = 2
|
|
auto_advance = true
|
|
|
|
[sub_resource type="AnimationNodeStateMachine" id=7]
|
|
states/bounce/node = SubResource( 1 )
|
|
states/bounce/position = Vector2( 653, 152.25 )
|
|
states/idle/node = SubResource( 2 )
|
|
states/idle/position = Vector2( 358, 151.875 )
|
|
states/reset/node = SubResource( 3 )
|
|
states/reset/position = Vector2( 495, 279.5 )
|
|
transitions = [ "idle", "bounce", SubResource( 4 ), "bounce", "reset", SubResource( 5 ), "reset", "idle", SubResource( 6 ) ]
|
|
start_node = "idle"
|
|
|
|
[sub_resource type="AnimationNodeStateMachinePlayback" id=8]
|
|
|
|
[node name="item_balloon" instance=ExtResource( 2 )]
|
|
script = ExtResource( 1 )
|
|
|
|
[node name="ItemSpawn" type="BoneAttachment" parent="Armature/Skeleton" index="1"]
|
|
transform = Transform( -1, 0, -8.74228e-08, -8.96342e-08, 0, 1.0253, 0, 1, 0, 0, -0.013823, 0 )
|
|
bone_name = "Item"
|
|
|
|
[node name="attached_item" parent="Armature/Skeleton/ItemSpawn" index="0" instance=ExtResource( 3 )]
|
|
unique_name_in_owner = true
|
|
transform = Transform( 1, 0, -2.37178e-09, 0, 1, 0, -2.37177e-09, 0, 1.02713, 1.6173e-08, 0, -0.184997 )
|
|
item_type = ExtResource( 4 )
|
|
|
|
[node name="AnimationPlayer" parent="." index="1"]
|
|
autoplay = "Balloon Idle"
|
|
|
|
[node name="AnimationTree" type="AnimationTree" parent="." index="2"]
|
|
unique_name_in_owner = true
|
|
tree_root = SubResource( 7 )
|
|
anim_player = NodePath("../AnimationPlayer")
|
|
active = true
|
|
parameters/playback = SubResource( 8 )
|
|
|
|
[node name="bounce_timer" type="Timer" parent="." index="3"]
|
|
unique_name_in_owner = true
|
|
one_shot = true
|
|
|
|
[connection signal="timeout" from="bounce_timer" to="." method="_on_bounce_timer_timeout"]
|