From 0fa666e9a2da122b0e9b75043272f87bea76803a Mon Sep 17 00:00:00 2001 From: karl Date: Sun, 2 Feb 2020 16:37:27 +0100 Subject: [PATCH] Fix player 1 always losing --- BodyConfig/bodyBuildingScript.gd | 4 ++++ Ingame/Arena.tscn | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/BodyConfig/bodyBuildingScript.gd b/BodyConfig/bodyBuildingScript.gd index 2deeb58..a640a2e 100644 --- a/BodyConfig/bodyBuildingScript.gd +++ b/BodyConfig/bodyBuildingScript.gd @@ -49,6 +49,8 @@ func _ready(): _torso.get_node("UpBackRight").key = KEY_Q _torso.get_node("Head").key = KEY_C + + _torso.player_id = 0 func change_count_ui(): @@ -70,6 +72,8 @@ func change_count_ui(): _torso.get_node("UpBackRight").key = KEY_O _torso.get_node("Head").key = KEY_M + + _torso.player_id = 1 func _process(delta): diff --git a/Ingame/Arena.tscn b/Ingame/Arena.tscn index ccdd899..468357d 100644 --- a/Ingame/Arena.tscn +++ b/Ingame/Arena.tscn @@ -499,7 +499,7 @@ rotation_mode = 4 transform = Transform( -1, 0, -3.25841e-07, 0, 1, 0, 3.25841e-07, 0, -1, 0, 0, 0 ) [node name="PathFollow3" type="PathFollow" parent="Path"] -transform = Transform( 0.0525302, 0, 0.998617, 0, 1, 0, -0.998619, 0, 0.05253, 1.77306, 0, -55.9514 ) +transform = Transform( 0.0525302, 0, 0.998616, 0, 1, 0, -0.998619, 0, 0.05253, 1.77306, 0, -55.9514 ) offset = 57.5 rotation_mode = 4 @@ -603,7 +603,7 @@ rotation_mode = 4 transform = Transform( -1, 0, -3.25841e-07, 0, 1, 0, 3.25841e-07, 0, -1, 0, 0, 0 ) [node name="PathFollow16" type="PathFollow" parent="Path"] -transform = Transform( -0.999998, 4.26235e-07, -0.00197735, 4.26236e-07, 1, 0, 0.00197735, -8.42818e-10, -0.999997, -65.6734, 0, -1.33537 ) +transform = Transform( -0.999998, 4.26235e-07, -0.00197735, 4.26236e-07, 1, 0, 0.00197735, -8.42818e-10, -0.999998, -65.6734, 0, -1.33537 ) offset = 380.81 rotation_mode = 4