i found a script just today that made u be able to play with split screen, but i can only get the first camera working. can someone tell me what im doing wrong?
here is the code:
# need to get game window size so... import Rasterizer # get list of objects in scene objList = GameLogic.getCurrentScene().getObjectList() # get player 1 camera named "Cam1" viewCam = objList["OBCam1"] # get player 2 camera named "Cam2" viewCam2 = objList["OBCam2"] # set player 1 cam bottom half of screen viewCam.setViewport( 0, 0, Rasterizer.getWindowWidth(), Rasterizer.getWindowHeight()/2 ) # set player 2 cam top half of screen viewCam2.setViewport(0, Rasterizer.getWindowHeight()/2, Rasterizer.getWindowWidth(), Rasterizer.getWindowHeight() ) # use split screen viewCam.enableViewport(True) viewCam2.enableViewport(True)
id appreicate the help!’