MakeCode Games!

A fan-made community library of MakeCode Arcade games. Visit MakeCode Arcade to make a game!

← Back to extensions

Split Screen

Add split-screen camera views and picture-in-picture viewports to Arcade games for multiplayer or mini-maps.

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

NameTypeDefaultMeaning
znumber99The 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.