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=18 format=3 uid="uid://eegv1qihfv2q"]
|
||||
[gd_scene load_steps=20 format=3 uid="uid://eegv1qihfv2q"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://dy41q1kxray5t" path="res://scenes/entities/plants/peashooter.tscn" id="1_muntu"]
|
||||
[ext_resource type="Script" uid="uid://djpc0kvagpadv" path="res://scripts/components/plants/ThreepeaterShooter.cs" id="2_ieami"]
|
||||
|
|
@ -94,6 +94,8 @@ _data = {
|
|||
&"shoot": SubResource("Animation_7kfrv")
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationNodeTimeScale" id="AnimationNodeTimeScale_mbbd7"]
|
||||
|
||||
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_j7h7q"]
|
||||
animation = &"threepeater/idle"
|
||||
|
||||
|
|
@ -118,6 +120,14 @@ states/threepeater_shoot/node = SubResource("AnimationNodeAnimation_pqbws")
|
|||
states/threepeater_shoot/position = Vector2(633, 91)
|
||||
transitions = ["Start", "threepeater_idle", SubResource("AnimationNodeStateMachineTransition_7kfrv"), "threepeater_idle", "threepeater_shoot", SubResource("AnimationNodeStateMachineTransition_o2obw"), "threepeater_shoot", "threepeater_idle", SubResource("AnimationNodeStateMachineTransition_wiys2")]
|
||||
|
||||
[sub_resource type="AnimationNodeBlendTree" id="AnimationNodeBlendTree_j7h7q"]
|
||||
graph_offset = Vector2(-518.8, 27.8)
|
||||
nodes/TimeScale/node = SubResource("AnimationNodeTimeScale_mbbd7")
|
||||
nodes/TimeScale/position = Vector2(0, 120)
|
||||
nodes/Tree/node = SubResource("AnimationNodeStateMachine_wiys2")
|
||||
nodes/Tree/position = Vector2(-320, 100)
|
||||
node_connections = [&"TimeScale", 0, &"Tree", &"output", 0, &"TimeScale"]
|
||||
|
||||
[sub_resource type="SegmentShape2D" id="SegmentShape2D_j7h7q"]
|
||||
resource_local_to_scene = true
|
||||
|
||||
|
|
@ -138,7 +148,7 @@ libraries = {
|
|||
}
|
||||
|
||||
[node name="AnimationTree" parent="." index="2"]
|
||||
tree_root = SubResource("AnimationNodeStateMachine_wiys2")
|
||||
tree_root = SubResource("AnimationNodeBlendTree_j7h7q")
|
||||
|
||||
[node name="Shooter" parent="." index="3"]
|
||||
position = Vector2(20, -9)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue