torso not lost on scene transition
This commit is contained in:
1 parent
8a82a2833f
commit
eeee538703
4 files changed
+10
-7
No files matched your search
@@ -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():
|
||||
|
||||
Reference in new issue
Block a user