[gd_scene load_steps=13 format=3 uid="uid://bgmpst4q8lyw2"] [ext_resource type="PackedScene" uid="uid://dd5nled5di42i" path="res://skin/the-knight.glb" id="1_mro73"] [ext_resource type="Script" path="res://skin/the_knight.gd" id="2_ofwyo"] [sub_resource type="AnimationNodeTimeScale" id="AnimationNodeTimeScale_kfgya"] [sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_a0atl"] animation = &"attack-default" [sub_resource type="AnimationNodeOneShot" id="AnimationNodeOneShot_a6lqo"] filter_enabled = true filters = ["", "base/rig/Skeleton3D:DEF-forearm.L", "base/rig/Skeleton3D:DEF-forearm.L.001", "base/rig/Skeleton3D:DEF-forearm.R", "base/rig/Skeleton3D:DEF-forearm.R.001", "base/rig/Skeleton3D:DEF-hand.L", "base/rig/Skeleton3D:DEF-hand.R", "base/rig/Skeleton3D:DEF-shoulder.L", "base/rig/Skeleton3D:DEF-shoulder.R", "base/rig/Skeleton3D:DEF-spine", "base/rig/Skeleton3D:DEF-spine.002", "base/rig/Skeleton3D:DEF-spine.003", "base/rig/Skeleton3D:DEF-spine.004", "base/rig/Skeleton3D:DEF-spine.005", "base/rig/Skeleton3D:DEF-spine.006", "base/rig/Skeleton3D:DEF-upper_arm.L", "base/rig/Skeleton3D:DEF-upper_arm.L.001", "base/rig/Skeleton3D:DEF-upper_arm.R", "base/rig/Skeleton3D:DEF-upper_arm.R.001", "base/rig/Skeleton3D:nail-back", "base/rig/Skeleton3D:nail-hand.L", "rig/Skeleton3D:DEF-forearm.L", "rig/Skeleton3D:DEF-forearm.L.001", "rig/Skeleton3D:DEF-forearm.R", "rig/Skeleton3D:DEF-forearm.R.001", "rig/Skeleton3D:DEF-hand.L", "rig/Skeleton3D:DEF-hand.R", "rig/Skeleton3D:DEF-shoulder.L", "rig/Skeleton3D:DEF-shoulder.R", "rig/Skeleton3D:DEF-spine", "rig/Skeleton3D:DEF-spine.002", "rig/Skeleton3D:DEF-spine.003", "rig/Skeleton3D:DEF-spine.004", "rig/Skeleton3D:DEF-spine.005", "rig/Skeleton3D:DEF-spine.006", "rig/Skeleton3D:DEF-upper_arm.L", "rig/Skeleton3D:DEF-upper_arm.L.001", "rig/Skeleton3D:DEF-upper_arm.R", "rig/Skeleton3D:DEF-upper_arm.R.001", "rig/Skeleton3D:nail-back_2", "rig/Skeleton3D:nail-hand.L"] sync = true [sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_pbq7e"] animation = &"move-jump" [sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_ego33"] animation = &"idle-default" [sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_2l36w"] animation = &"move-walk" [sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_suq0c"] animation = &"move-run" [sub_resource type="AnimationNodeBlendSpace1D" id="AnimationNodeBlendSpace1D_446cp"] blend_point_0/node = SubResource("AnimationNodeAnimation_ego33") blend_point_0/pos = 0.0 blend_point_1/node = SubResource("AnimationNodeAnimation_2l36w") blend_point_1/pos = 0.5 blend_point_2/node = SubResource("AnimationNodeAnimation_suq0c") blend_point_2/pos = 1.0 min_space = 0.0 sync = true [sub_resource type="AnimationNodeTransition" id="AnimationNodeTransition_87yve"] sync = true xfade_time = 0.1 input_0/name = "move" input_0/auto_advance = false input_0/break_loop_at_end = false input_0/reset = true input_1/name = "jump" input_1/auto_advance = false input_1/break_loop_at_end = false input_1/reset = true [sub_resource type="AnimationNodeBlendTree" id="AnimationNodeBlendTree_xdiqd"] graph_offset = Vector2(-595.2, -44.16) nodes/TimeScale/node = SubResource("AnimationNodeTimeScale_kfgya") nodes/TimeScale/position = Vector2(80, 300) nodes/attack/node = SubResource("AnimationNodeOneShot_a6lqo") nodes/attack/position = Vector2(300, 120) "nodes/attack 2/node" = SubResource("AnimationNodeAnimation_a0atl") "nodes/attack 2/position" = Vector2(-160, 390) nodes/jump/node = SubResource("AnimationNodeAnimation_pbq7e") nodes/jump/position = Vector2(-540, 240) nodes/move/node = SubResource("AnimationNodeBlendSpace1D_446cp") nodes/move/position = Vector2(-556.457, 77.4483) nodes/movement/node = SubResource("AnimationNodeTransition_87yve") nodes/movement/position = Vector2(-250, 150) nodes/output/position = Vector2(670, 140) node_connections = [&"TimeScale", 0, &"attack 2", &"attack", 0, &"movement", &"attack", 1, &"TimeScale", &"movement", 0, &"move", &"movement", 1, &"jump", &"output", 0, &"attack"] [node name="the-knight" instance=ExtResource("1_mro73")] script = ExtResource("2_ofwyo") [node name="Skeleton3D" parent="rig" index="0"] bones/0/position = Vector3(0, 0.292604, -0.03312) bones/0/rotation = Quaternion(0.149, 1.17879e-07, 1.77622e-08, 0.988837) bones/2/rotation = Quaternion(-0.0924557, 1.18699e-07, -1.10216e-08, 0.995717) bones/3/rotation = Quaternion(0.00901271, -1.19204e-07, 1.07438e-09, 0.999959) bones/3/scale = Vector3(1, 1, 1) bones/4/rotation = Quaternion(0.229497, 1.16028e-07, 2.73582e-08, 0.973309) bones/4/scale = Vector3(1, 1, 1) bones/5/rotation = Quaternion(-0.109628, -1.18491e-07, -1.30686e-08, 0.993973) bones/6/rotation = Quaternion(-0.111466, 1.18466e-07, -1.32878e-08, 0.993768) bones/7/rotation = Quaternion(-0.707107, 7.85046e-17, 7.85046e-17, 0.707107) bones/8/position = Vector3(4.53321e-09, 0.292604, -0.03312) bones/8/rotation = Quaternion(-0.0952461, -0.736157, -0.422428, 0.52015) bones/8/scale = Vector3(1, 1, 1) bones/9/position = Vector3(5.016e-09, 0.292604, -0.03312) bones/9/rotation = Quaternion(-0.0952461, 0.736157, 0.422428, 0.52015) bones/9/scale = Vector3(1, 1, 1) bones/10/position = Vector3(0.0733334, 0.262039, -0.00743999) bones/10/rotation = Quaternion(0.998928, -7.0842e-08, 1.2262e-07, 0.0462933) bones/10/scale = Vector3(1, 1, 1) bones/11/rotation = Quaternion(-1.49011e-08, 1.19352e-07, -7.64426e-08, 1) bones/12/rotation = Quaternion(0.119238, -1.18216e-07, 6.03186e-08, 0.992866) bones/12/scale = Vector3(1, 1, 1) bones/13/rotation = Quaternion(1.11759e-08, 6.38114e-08, -1.74988e-08, 1) bones/14/rotation = Quaternion(-0.547448, -1.07996e-07, -2.47164e-07, 0.83684) bones/14/scale = Vector3(1, 1, 1) bones/15/rotation = Quaternion(-5.94909e-08, 0.961249, -0.275682, 1.41077e-07) bones/15/scale = Vector3(1, 1, 1) bones/16/position = Vector3(-0.0733334, 0.262039, -0.00743998) bones/16/rotation = Quaternion(0.998928, 5.62744e-08, -1.21945e-07, 0.0462933) bones/16/scale = Vector3(1, 1, 1) bones/17/rotation = Quaternion(-1.11759e-08, -1.19575e-07, 6.18592e-08, 1) bones/18/rotation = Quaternion(0.119238, 1.18438e-07, -6.03452e-08, 0.992866) bones/18/scale = Vector3(1, 1, 1) bones/19/rotation = Quaternion(1.86264e-08, -6.38114e-08, 1.74988e-08, 1) bones/20/rotation = Quaternion(-0.547448, 1.07996e-07, 2.47164e-07, 0.83684) bones/20/scale = Vector3(1, 1, 1) bones/21/rotation = Quaternion(5.94909e-08, 0.961249, -0.275682, -1.41077e-07) bones/21/scale = Vector3(1, 1, 1) bones/22/position = Vector3(0.01098, 0.550924, 0.04104) bones/22/rotation = Quaternion(-0.613952, -0.35093, -0.351142, 0.613685) bones/22/scale = Vector3(1, 1, 1) bones/23/position = Vector3(0.11718, 0.540641, 0.0188245) bones/23/rotation = Quaternion(-0.211191, 0.421882, -0.86264, 0.182391) bones/23/scale = Vector3(1.01221, 0.976015, 1.01221) bones/24/rotation = Quaternion(-3.93055e-08, 0.104437, -1.89924e-09, 0.994531) bones/25/rotation = Quaternion(0.798642, 0.105596, -0.144409, 0.574601) bones/25/scale = Vector3(1.00226, 0.963548, 1.03574) bones/26/rotation = Quaternion(2.12587e-07, 0.017527, -7.76764e-08, 0.999846) bones/27/rotation = Quaternion(-0.407427, 0.0163799, -0.0242184, 0.91277) bones/27/scale = Vector3(0.985859, 1.00528, 1.00995) bones/28/position = Vector3(-0.01098, 0.550924, 0.04104) bones/28/rotation = Quaternion(-0.613952, 0.35093, 0.351142, 0.613685) bones/28/scale = Vector3(1, 1, 1) bones/29/position = Vector3(-0.11718, 0.540641, 0.0188245) bones/29/rotation = Quaternion(-0.211191, -0.421882, 0.86264, 0.182391) bones/29/scale = Vector3(1.01221, 0.976015, 1.01221) bones/30/rotation = Quaternion(-1.21486e-08, -0.104437, -2.05754e-08, 0.994532) bones/31/rotation = Quaternion(0.798642, -0.105596, 0.144409, 0.574601) bones/31/scale = Vector3(1.00226, 0.963548, 1.03574) bones/32/rotation = Quaternion(2.2423e-07, -0.017527, 8.04709e-08, 0.999846) bones/33/rotation = Quaternion(-0.407427, -0.0163799, 0.0242184, 0.91277) bones/33/scale = Vector3(0.98586, 1.00528, 1.00995) bones/34/position = Vector3(0.115146, 0.381299, 0.00532452) bones/34/rotation = Quaternion(-0.0012814, 0.0528379, 0.998309, -0.0242099) bones/34/scale = Vector3(0.00802934, 0.00802934, 0.00802934) [node name="AnimationTree" type="AnimationTree" parent="." index="2"] tree_root = SubResource("AnimationNodeBlendTree_xdiqd") anim_player = NodePath("../AnimationPlayer") parameters/TimeScale/scale = 4.0 parameters/attack/active = false parameters/attack/internal_active = false parameters/attack/request = 0 parameters/move/blend_position = 0.0 parameters/movement/current_state = "move" parameters/movement/transition_request = "" parameters/movement/current_index = 0