set split screen capture everything below z
Problem it solves
Your health bars or score popups are rendering underneath the split-screen camera display instead of on top of it.
What this block does
Configures the maximum Z-index layer captured by split-screen cameras so higher Z-index UI elements draw over split views.
The block
Block ID: splitscreen_setSplitScreenZIndex
set split screen to capture everything below z $z
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
| z | number | 99 | The depth layer limit below which all sprites are captured inside split views. |
Example
splitScreen.setSplitScreenZIndex(50)
Add the extension
Add github:riknoll/arcade-split-screen to your project, or open: Import arcade-split-screen.