set split screen render size width height
Problem it solves
You want the split-screen layout to occupy only part of the display, leaving room around the edges for custom borders or player stats.
What this block does
Changes the overall width and height of the split-screen display area.
The block
Block ID: splitscreen_setRenderSize
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
| width | number | 160 | The total width in pixels of the split-screen area |
| height | number | 120 | The total height in pixels of the split-screen area |
Example
splitScreen.setRenderSize(160, 100)
Add the extension
Add github:riknoll/arcade-split-screen to your project, or open: Import arcade-split-screen.