set camera region
Problem it solves
You want to arrange multi-player screen layouts differently, such as dividing the screen horizontally or vertically into custom sections.
What this block does
Assigns a specific camera to draw on a defined region of the screen, such as the left half, right half, or top-left corner.
The block
Block ID: splitscreensetcameraregion
set camera $camera region to $region
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
| camera | Camera | The camera whose screen region you want to set. | |
| region | CameraRegion | The region preset (e.g. VerticalLeftHalf, TopLeft) to assign to this camera. |
Example
splitScreen.setCameraRegion(splitScreen.Camera.Camera1, splitScreen.CameraRegion.VerticalLeftHalf)
Add the extension
Add github:riknoll/arcade-split-screen to your project, or open: Import arcade-split-screen.