From ea7fbd2627d078723dc224efc7ce47372f31199e Mon Sep 17 00:00:00 2001 From: karl Date: Sun, 2 Feb 2020 10:21:50 +0100 Subject: [PATCH] Fix body spawn locations --- Controllers/GameStateController.gd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Controllers/GameStateController.gd b/Controllers/GameStateController.gd index fe7a455..96308a6 100644 --- a/Controllers/GameStateController.gd +++ b/Controllers/GameStateController.gd @@ -9,7 +9,7 @@ var _fighting_scene var _win_screen_scene var _bodies : Array var _body_count = 0 -var _body_positions = [Vector3(-30, 3, 0), Vector3(30, 3, 0), Vector3(0, 3, -30), Vector3(0, 3, 30)] +var _body_positions = [Vector3(0, 5, -30), Vector3(0, 5, 30), Vector3(-30, 5, 0), Vector3(30, 5, 0)] func _ready(): InGameState.player_count = 2 @@ -60,7 +60,7 @@ func _switch_to_fighting(torso): _body_build_scene.remove_child(torso) torso.global_transform.origin = Vector3.ZERO - torso.translation += Vector3(0, 4, 0) + torso.translation += _body_positions[_body_count] torso.rotation = Vector3.ZERO _body_count += 1