Zombie animation now supports timescale

This commit is contained in:
Rendo 2025-07-07 23:27:36 +05:00
commit df940e2ba6
3 changed files with 28 additions and 7 deletions

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=27 format=3 uid="uid://co11v3w8hbwgf"]
[gd_scene load_steps=29 format=3 uid="uid://co11v3w8hbwgf"]
[ext_resource type="Script" uid="uid://dildme6epx8l4" path="res://scripts/components/zombies/RuntimeZombieData.cs" id="1_qq3f1"]
[ext_resource type="Texture2D" uid="uid://bwdqbrnn7ygtr" path="res://assets/sprites/atlases/zombies/Зондби.png" id="2_4pdxh"]
@ -59,6 +59,16 @@ _data = {
&"RESET": SubResource("Animation_qv5y7")
}
[sub_resource type="AnimationNodeTimeScale" id="AnimationNodeTimeScale_2q05d"]
[sub_resource type="AnimationNodeBlendTree" id="AnimationNodeBlendTree_ccrjo"]
graph_offset = Vector2(-447, 53)
nodes/TimeScale/node = SubResource("AnimationNodeTimeScale_2q05d")
nodes/TimeScale/position = Vector2(60, 120)
nodes/Tree/node = ExtResource("8_ckb7n")
nodes/Tree/position = Vector2(-240, 120)
node_connections = [&"TimeScale", 0, &"Tree", &"output", 0, &"TimeScale"]
[sub_resource type="Resource" id="Resource_ckb7n"]
resource_local_to_scene = true
script = ExtResource("7_b3p4o")
@ -106,9 +116,10 @@ libraries = {
}
[node name="AnimationTree" type="AnimationTree" parent="."]
tree_root = ExtResource("8_ckb7n")
tree_root = SubResource("AnimationNodeBlendTree_ccrjo")
advance_expression_base_node = NodePath("../Eatbox")
anim_player = NodePath("../AnimationPlayer")
parameters/TimeScale/scale = 1.0
[node name="Mover" type="Node" parent="."]
script = ExtResource("4_u5syx")