Animations improved
This commit is contained in:
parent
c89d93cf24
commit
ad18793543
35 changed files with 430 additions and 465 deletions
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=8 format=3 uid="uid://bw1w8jp0yeypy"]
|
||||
[gd_scene load_steps=18 format=3 uid="uid://bw1w8jp0yeypy"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://b1hjjbdwf1rtc" path="res://scenes/templates/plant_template.tscn" id="1_n25yi"]
|
||||
[ext_resource type="Texture2D" uid="uid://b6tyoa5htapir" path="res://assets/sprites/atlases/plants/aloe.png" id="2_iup5p"]
|
||||
|
|
@ -19,12 +19,67 @@ tracks/0/keys = {
|
|||
"update": 1,
|
||||
"values": [0]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("AnimationTree:parameters/conditions/heal")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [false]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_wlien"]
|
||||
_data = {
|
||||
"RESET": SubResource("Animation_vknky")
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_c25ew"]
|
||||
animation = &"aloe/heal"
|
||||
|
||||
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_6dmta"]
|
||||
animation = &"aloe/idle"
|
||||
|
||||
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_7tkf5"]
|
||||
animation = &"aloe/idle_used"
|
||||
|
||||
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_8bc4q"]
|
||||
animation = &"aloe/recharge"
|
||||
|
||||
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_gi6e0"]
|
||||
advance_mode = 2
|
||||
|
||||
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_l1t7h"]
|
||||
switch_mode = 2
|
||||
advance_mode = 2
|
||||
|
||||
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_cut4s"]
|
||||
switch_mode = 2
|
||||
advance_mode = 2
|
||||
|
||||
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_um4ov"]
|
||||
advance_mode = 2
|
||||
advance_condition = &"heal"
|
||||
|
||||
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_4kdc0"]
|
||||
advance_mode = 2
|
||||
advance_condition = &"charged"
|
||||
|
||||
[sub_resource type="AnimationNodeStateMachine" id="AnimationNodeStateMachine_bldox"]
|
||||
states/aloe_heal/node = SubResource("AnimationNodeAnimation_c25ew")
|
||||
states/aloe_heal/position = Vector2(530, 41)
|
||||
states/aloe_idle/node = SubResource("AnimationNodeAnimation_6dmta")
|
||||
states/aloe_idle/position = Vector2(359, 100)
|
||||
states/aloe_idle_used/node = SubResource("AnimationNodeAnimation_7tkf5")
|
||||
states/aloe_idle_used/position = Vector2(710, 105)
|
||||
states/aloe_recharge/node = SubResource("AnimationNodeAnimation_8bc4q")
|
||||
states/aloe_recharge/position = Vector2(530, 171)
|
||||
transitions = ["Start", "aloe_idle", SubResource("AnimationNodeStateMachineTransition_gi6e0"), "aloe_heal", "aloe_idle_used", SubResource("AnimationNodeStateMachineTransition_l1t7h"), "aloe_recharge", "aloe_idle", SubResource("AnimationNodeStateMachineTransition_cut4s"), "aloe_idle", "aloe_heal", SubResource("AnimationNodeStateMachineTransition_um4ov"), "aloe_idle_used", "aloe_recharge", SubResource("AnimationNodeStateMachineTransition_4kdc0")]
|
||||
graph_offset = Vector2(-78.082, -71.7578)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_oe0dc"]
|
||||
size = Vector2(22, 32)
|
||||
|
||||
|
|
@ -42,17 +97,20 @@ libraries = {
|
|||
"": SubResource("AnimationLibrary_wlien"),
|
||||
"aloe": ExtResource("3_3sp3b")
|
||||
}
|
||||
autoplay = "aloe/idle"
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox" index="0"]
|
||||
shape = SubResource("RectangleShape2D_oe0dc")
|
||||
[node name="AnimationTree" parent="." index="2"]
|
||||
tree_root = SubResource("AnimationNodeStateMachine_bldox")
|
||||
parameters/conditions/charged = false
|
||||
parameters/conditions/heal = false
|
||||
|
||||
[node name="Behaviour" type="Node" parent="." index="3" node_paths=PackedStringArray("_player")]
|
||||
[node name="Behaviour" type="Node" parent="." index="3"]
|
||||
script = ExtResource("4_55asm")
|
||||
_player = NodePath("../AnimationPlayer")
|
||||
|
||||
[node name="Timer" type="Timer" parent="Behaviour" index="0"]
|
||||
wait_time = 15.0
|
||||
one_shot = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox" index="0"]
|
||||
shape = SubResource("RectangleShape2D_oe0dc")
|
||||
|
||||
[connection signal="timeout" from="Behaviour/Timer" to="Behaviour" method="OnTimeout"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue