From 410e2f513dc393fc6f08ebd501f8acd3ea3970b2 Mon Sep 17 00:00:00 2001 From: unfa Date: Wed, 24 Mar 2021 00:53:32 +0100 Subject: [PATCH] Updated PLayer scene for weapon bob animations. --- Player.tscn | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Player.tscn b/Player.tscn index 7301b07..2c6302b 100644 --- a/Player.tscn +++ b/Player.tscn @@ -22,9 +22,10 @@ animation = "Land" animation = "Walk" [sub_resource type="AnimationNodeStateMachineTransition" id=11] -priority = 2 +priority = 0 [sub_resource type="AnimationNodeStateMachineTransition" id=12] +switch_mode = 1 xfade_time = 0.1 [sub_resource type="AnimationNodeStateMachineTransition" id=13] @@ -36,7 +37,7 @@ switch_mode = 2 xfade_time = 0.3 [sub_resource type="AnimationNodeStateMachineTransition" id=15] -priority = 2 +priority = 0 [sub_resource type="AnimationNodeStateMachineTransition" id=16] xfade_time = 0.2 @@ -46,16 +47,16 @@ xfade_time = 0.1 [sub_resource type="AnimationNodeStateMachine" id=18] states/Idle/node = SubResource( 7 ) -states/Idle/position = Vector2( 110, 43 ) +states/Idle/position = Vector2( 59, 2 ) states/Jump/node = SubResource( 8 ) -states/Jump/position = Vector2( 614, 25 ) +states/Jump/position = Vector2( 618, 2 ) states/Land/node = SubResource( 9 ) states/Land/position = Vector2( 599, 249 ) states/Walk/node = SubResource( 10 ) states/Walk/position = Vector2( 110, 240 ) transitions = [ "Idle", "Jump", SubResource( 11 ), "Jump", "Land", SubResource( 12 ), "Land", "Idle", SubResource( 13 ), "Land", "Walk", SubResource( 14 ), "Walk", "Jump", SubResource( 15 ), "Walk", "Idle", SubResource( 16 ), "Idle", "Walk", SubResource( 17 ) ] start_node = "Idle" -graph_offset = Vector2( -126, -31 ) +graph_offset = Vector2( 18, -75 ) [sub_resource type="AnimationNodeStateMachinePlayback" id=19]