set camera view to capture everything below z
Problem it solves
You have UI icons or health bars on screen that you don't want visible inside your picture-in-picture camera view.
What this block does
Sets the maximum Z-index captured by a camera view sprite. Sprites with higher Z-indexes will not appear inside the camera window.
The block
Block ID: splitscreen_cameraViewSetZIndex
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
| cameraView | Sprite | myCameraView | The camera view sprite to configure |
| z | number | 99 | The Z-index threshold for rendering inside this camera view |
Example
let miniCam = splitScreen.createCameraView(40, 30) splitScreen.cameraViewSetZIndex(miniCam, 50)
Add the extension
Add github:riknoll/arcade-split-screen to your project, or open: Import arcade-split-screen.