set camera view border color
Problem it solves
You want to outline your picture-in-picture camera sprite with a colored frame or remove its border entirely.
What this block does
Sets the border outline color for a camera view sprite. Set it to 0 (transparent) to hide the border.
The block
Block ID: splitscreen_setCameraViewBorderColor
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
| cameraView | Sprite | myCameraView | The camera view sprite |
| color | number | 1 | The palette color index (0-15) for the border |
Example
let miniCam = splitScreen.createCameraView(40, 30) splitScreen.setCameraViewBorderColor(miniCam, 7)
Add the extension
Add github:riknoll/arcade-split-screen to your project, or open: Import arcade-split-screen.