Download .blend's file
https://drive.google.com/drive/folder...
python scripts
import bge
def setup_split_screen():
Get the current scene
scene = bge.logic.getCurrentScene()
Get the two camera objects
camera1 = scene.objects['Camera1'] # Replace with your actual camera object names
camera2 = scene.objects['Camera2']
Get the window size
width = bge.render.getWindowWidth()
height = bge.render.getWindowHeight()
Set viewport for Camera 1 (left half of the screen)
camera1.useViewport = True
camera1.setViewport(0, 0, width // 2, height) # Split the screen in half (left side)
Set viewport for Camera 2 (right half of the screen)
camera2.useViewport = True
camera2.setViewport(width // 2, 0, width, height) # Split the screen in half (right side)
Call the setup function
setup_split_screen()