I’ll start with the code I tried.
cont = GameLogic.getCurrentController() Font1 = cont.actuators['Font'] Font2 = cont.actuators['Font.001'] player1 = GameLogic.getCurrentScene().objects['OBCube'] player2 = GameLogic.getCurrentScene().objects['OBCube.003'] if player1['health1'] == 0: cont.activate(Font1) elif player2['health2'] == 0: cont.activate(Font2)
This did not work because objects Cube and Cube.003 are not in the current scene. They are in a different scene. How do I find them? With getSceneList() prehaps? And when I do find them, will properties health1 and health2 still be the same?
All input’s appreciated. Hopefully someone knows what to do.