torso not lost on scene transition

This commit is contained in:
Leon Palluch committed 2020-02-01 20:30:27 +01:00
1 parent 8a82a2833f
commit eeee538703
4 files changed
+10 -7

No files matched your search

+6 -1
View File
@@ -50,8 +50,13 @@ func _switch_to_win(player_id):
_win_screen_scene.set_win_message(player_id)
func _switch_to_fighting():
func _switch_to_fighting(torso):
_body_build_scene.remove_child(torso)
torso.translation += Vector3(0, 3, 0)
torso.rotation = Vector3(0, 0, 0)
_switch_scene(_fighting_scene, "fight_scene")
_fighting_scene.add_child(torso)
func _switch_to_body_build():