et on rajoute un animation node blend tree
et ouai! on est comme ça par ici. on a suivi un tuto alors on fait les beaux https://www.youtube.com/watch?v=iElHZhOxGYA
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://vclpg4e4ql54"]
|
||||
[gd_scene load_steps=8 format=3 uid="uid://vclpg4e4ql54"]
|
||||
|
||||
[ext_resource type="Script" path="res://caracters/player/player_controler.gd" id="1_oapm5"]
|
||||
[ext_resource type="AnimationNodeStateMachine" uid="uid://ddr1ltkievtku" path="res://animations/human/human_state_machine.tres" id="3_1y7fn"]
|
||||
@@ -9,6 +9,16 @@
|
||||
radius = 5.0
|
||||
height = 48.0
|
||||
|
||||
[sub_resource type="AnimationNodeTimeScale" id="AnimationNodeTimeScale_85jde"]
|
||||
|
||||
[sub_resource type="AnimationNodeBlendTree" id="AnimationNodeBlendTree_iwsa7"]
|
||||
nodes/HumanState/node = ExtResource("3_1y7fn")
|
||||
nodes/HumanState/position = Vector2(133.333, 120)
|
||||
nodes/TimeScale/node = SubResource("AnimationNodeTimeScale_85jde")
|
||||
nodes/TimeScale/position = Vector2(453.333, 53.3333)
|
||||
nodes/output/position = Vector2(640, 146.667)
|
||||
node_connections = [&"TimeScale", 0, &"HumanState", &"output", 0, &"TimeScale"]
|
||||
|
||||
[node name="CharacterBody2D" type="CharacterBody2D"]
|
||||
z_index = 100
|
||||
motion_mode = 1
|
||||
@@ -26,12 +36,13 @@ rotation = 1.5708
|
||||
shape = SubResource("CapsuleShape2D_a4vmx")
|
||||
|
||||
[node name="AnimationTree" type="AnimationTree" parent="."]
|
||||
tree_root = ExtResource("3_1y7fn")
|
||||
tree_root = SubResource("AnimationNodeBlendTree_iwsa7")
|
||||
advance_expression_base_node = NodePath("..")
|
||||
anim_player = NodePath("../AnimationPlayer")
|
||||
parameters/grabing/blend_position = Vector2(0, 0)
|
||||
parameters/idling/blend_position = Vector2(-0.353287, 0.839053)
|
||||
parameters/walking/blend_position = Vector2(0, 0)
|
||||
parameters/HumanState/grabing/blend_position = Vector2(0, 0)
|
||||
parameters/HumanState/idling/blend_position = Vector2(0, 0)
|
||||
parameters/HumanState/walking/blend_position = Vector2(0, 0)
|
||||
parameters/TimeScale/scale = 1.55
|
||||
|
||||
[node name="AnimationPlayer" parent="." instance=ExtResource("3_c286j")]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user