set camera region
Problem it solves
You want to customize how the screen is divided between players, like putting one player on the top half and another on the bottom half.
What this block does
Assigns a specific camera to a layout section of the screen, such as the top half, left third, or bottom-right corner.
The block
Block ID: splitscreensetcameraregion
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
| camera | Camera | Camera.Camera1 | The camera view you want to position |
| region | CameraRegion | CameraRegion.VerticalLeftHalf | The section of the screen where this camera should render |
Example
splitScreen.setCameraRegion(splitScreen.Camera.Camera1, splitScreen.CameraRegion.HorizontalTopHalf) splitScreen.setCameraRegion(splitScreen.Camera.Camera2, splitScreen.CameraRegion.HorizontalBottomHalf)
Add the extension
Add github:riknoll/arcade-split-screen to your project, or open: Import arcade-split-screen.