Plants animation now supports timescale
This commit is contained in:
parent
5fe7cb7d68
commit
e7a9860a54
18 changed files with 141 additions and 60 deletions
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=14 format=3 uid="uid://b7innrovtmf5u"]
|
||||
[gd_scene load_steps=16 format=3 uid="uid://b7innrovtmf5u"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://dy41q1kxray5t" path="res://scenes/entities/plants/peashooter.tscn" id="1_lp85e"]
|
||||
[ext_resource type="Texture2D" uid="uid://cu0651pvvkmvm" path="res://assets/sprites/atlases/plants/snow_pea.png" id="2_ytrm0"]
|
||||
|
|
@ -25,6 +25,8 @@ _data = {
|
|||
&"RESET": SubResource("Animation_pephc")
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationNodeTimeScale" id="AnimationNodeTimeScale_mbbd7"]
|
||||
|
||||
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_dv2ad"]
|
||||
animation = &"snowpea/idle"
|
||||
|
||||
|
|
@ -49,6 +51,14 @@ states/snowpea_shoot/node = SubResource("AnimationNodeAnimation_ptach")
|
|||
states/snowpea_shoot/position = Vector2(682, 100)
|
||||
transitions = ["snowpea_shoot", "snowpea_idle", SubResource("AnimationNodeStateMachineTransition_8spty"), "Start", "snowpea_idle", SubResource("AnimationNodeStateMachineTransition_lshcr"), "snowpea_idle", "snowpea_shoot", SubResource("AnimationNodeStateMachineTransition_ihul0")]
|
||||
|
||||
[sub_resource type="AnimationNodeBlendTree" id="AnimationNodeBlendTree_3oyhk"]
|
||||
graph_offset = Vector2(-518.8, 27.8)
|
||||
nodes/TimeScale/node = SubResource("AnimationNodeTimeScale_mbbd7")
|
||||
nodes/TimeScale/position = Vector2(0, 120)
|
||||
nodes/Tree/node = SubResource("AnimationNodeStateMachine_qdmro")
|
||||
nodes/Tree/position = Vector2(-320, 100)
|
||||
node_connections = [&"TimeScale", 0, &"Tree", &"output", 0, &"TimeScale"]
|
||||
|
||||
[sub_resource type="SegmentShape2D" id="SegmentShape2D_3oyhk"]
|
||||
resource_local_to_scene = true
|
||||
|
||||
|
|
@ -65,7 +75,7 @@ libraries = {
|
|||
autoplay = "snowpea/idle"
|
||||
|
||||
[node name="AnimationTree" parent="." index="2"]
|
||||
tree_root = SubResource("AnimationNodeStateMachine_qdmro")
|
||||
tree_root = SubResource("AnimationNodeBlendTree_3oyhk")
|
||||
|
||||
[node name="Shooter" parent="." index="3"]
|
||||
_projectile = ExtResource("5_bv86m")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue