Files
chaussette.sale/caracters/player/player.tscn
Thomas ec29c50631 Les voitures! Des carrosses à escence.
Et bien les voitures vois-tu, maintenant elles utilisent aussi
l'animation tree, le state machine of the future et les super autres
magiqueries.

Elles bougent grace à un Path2D qui est suivit par un PathFollow2D qui
leur sert de lapin. Elles suivent le lapin, sans cesse et sans cesse.
Elles sont sage.
2025-02-21 22:44:29 +01:00

52 lines
2.1 KiB
Plaintext

[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"]
[ext_resource type="PackedScene" uid="uid://bvsendl25xjju" path="res://animations/human/human_animation_player.tscn" id="3_c286j"]
[ext_resource type="PackedScene" uid="uid://cg4dhp7qe68pt" path="res://animations/human/human.tscn" id="4_rsj36"]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_a4vmx"]
radius = 5.0
height = 48.0
[sub_resource type="AnimationNodeTimeScale" id="AnimationNodeTimeScale_85jde"]
[sub_resource type="AnimationNodeBlendTree" id="AnimationNodeBlendTree_iwsa7"]
graph_offset = Vector2(0, -54)
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
script = ExtResource("1_oapm5")
[node name="Camera2D" type="Camera2D" parent="."]
zoom = Vector2(0.7, 0.7)
position_smoothing_enabled = true
drag_horizontal_enabled = true
drag_vertical_enabled = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(0, 43)
rotation = 1.5708
shape = SubResource("CapsuleShape2D_a4vmx")
[node name="AnimationTree" type="AnimationTree" parent="."]
tree_root = SubResource("AnimationNodeBlendTree_iwsa7")
advance_expression_base_node = NodePath("..")
anim_player = NodePath("../AnimationPlayer")
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")]
[node name="Sprite2D" parent="." instance=ExtResource("4_rsj36")]
frame = 1