2024-09-08 16:57:39 +02:00
|
|
|
[gd_scene load_steps=15 format=3 uid="uid://dy8vjf760prhq"]
|
|
|
|
|
|
|
|
[ext_resource type="PackedScene" uid="uid://c0ot1kp5fekqy" path="res://assets/3rdparty/KayKit_Adventurers_1.0_EXTRA/Characters/gltf/Rogue.glb" id="1_rsxsi"]
|
|
|
|
[ext_resource type="AnimationLibrary" uid="uid://dbaynxuqbkor6" path="res://assets/characters/rogue_animation_library.tres" id="2_18sv4"]
|
|
|
|
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_fe868"]
|
|
|
|
animation = &"rogue/1H_Melee_Attack_Chop"
|
|
|
|
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_dqt6d"]
|
|
|
|
animation = &"rogue/Idle"
|
|
|
|
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_g5g2g"]
|
|
|
|
animation = &"rogue/Running_A"
|
|
|
|
|
|
|
|
[sub_resource type="AnimationNodeTimeScale" id="AnimationNodeTimeScale_7v7om"]
|
|
|
|
|
|
|
|
[sub_resource type="AnimationNodeBlendTree" id="AnimationNodeBlendTree_uc6vu"]
|
|
|
|
nodes/Animation/node = SubResource("AnimationNodeAnimation_g5g2g")
|
|
|
|
nodes/Animation/position = Vector2(40, 180)
|
|
|
|
nodes/TimeScale/node = SubResource("AnimationNodeTimeScale_7v7om")
|
|
|
|
nodes/TimeScale/position = Vector2(340, 180)
|
|
|
|
nodes/output/position = Vector2(640, 160)
|
|
|
|
node_connections = [&"TimeScale", 0, &"Animation", &"output", 0, &"TimeScale"]
|
|
|
|
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_ryaua"]
|
|
|
|
advance_mode = 2
|
|
|
|
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_1dwt2"]
|
|
|
|
advance_mode = 2
|
|
|
|
advance_condition = &"attack"
|
|
|
|
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_w1i70"]
|
|
|
|
switch_mode = 2
|
|
|
|
advance_mode = 2
|
|
|
|
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_chmuj"]
|
|
|
|
xfade_time = 0.1
|
|
|
|
advance_mode = 2
|
|
|
|
advance_condition = &"running"
|
|
|
|
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_oa1w1"]
|
|
|
|
xfade_time = 0.1
|
|
|
|
advance_mode = 2
|
|
|
|
advance_condition = &"idle"
|
|
|
|
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_2nd5h"]
|
|
|
|
xfade_time = 0.2
|
|
|
|
advance_mode = 2
|
|
|
|
advance_condition = &"running"
|
|
|
|
|
|
|
|
[sub_resource type="AnimationNodeStateMachine" id="AnimationNodeStateMachine_h0y4b"]
|
|
|
|
states/End/position = Vector2(902, 102)
|
|
|
|
states/Start/position = Vector2(189, 123)
|
|
|
|
states/rogue_1H_Melee_Attack_Chop/node = SubResource("AnimationNodeAnimation_fe868")
|
|
|
|
states/rogue_1H_Melee_Attack_Chop/position = Vector2(677, 123)
|
|
|
|
states/rogue_Idle/node = SubResource("AnimationNodeAnimation_dqt6d")
|
|
|
|
states/rogue_Idle/position = Vector2(422, 123)
|
|
|
|
states/running/node = SubResource("AnimationNodeBlendTree_uc6vu")
|
|
|
|
states/running/position = Vector2(422, 285)
|
|
|
|
transitions = ["Start", "rogue_Idle", SubResource("AnimationNodeStateMachineTransition_ryaua"), "rogue_Idle", "rogue_1H_Melee_Attack_Chop", SubResource("AnimationNodeStateMachineTransition_1dwt2"), "rogue_1H_Melee_Attack_Chop", "rogue_Idle", SubResource("AnimationNodeStateMachineTransition_w1i70"), "rogue_Idle", "running", SubResource("AnimationNodeStateMachineTransition_chmuj"), "running", "rogue_Idle", SubResource("AnimationNodeStateMachineTransition_oa1w1"), "rogue_1H_Melee_Attack_Chop", "running", SubResource("AnimationNodeStateMachineTransition_2nd5h")]
|
|
|
|
graph_offset = Vector2(-12, -72)
|
|
|
|
|
|
|
|
[node name="Rogue" type="Node3D"]
|
|
|
|
|
|
|
|
[node name="Rogue" parent="." instance=ExtResource("1_rsxsi")]
|
|
|
|
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
|
|
root_node = NodePath("../Rogue")
|
|
|
|
libraries = {
|
|
|
|
"rogue": ExtResource("2_18sv4")
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="AnimationTree" type="AnimationTree" parent="."]
|
|
|
|
root_node = NodePath("../Rogue")
|
|
|
|
tree_root = SubResource("AnimationNodeStateMachine_h0y4b")
|
|
|
|
anim_player = NodePath("../AnimationPlayer")
|
|
|
|
parameters/conditions/attack = false
|
|
|
|
parameters/conditions/idle = false
|
|
|
|
parameters/conditions/running = false
|
|
|
|
parameters/running/TimeScale/scale = 1.5
|