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 camera view capture everything below z

Problem it solves

Your custom camera view sprite is showing HUD text or floating controls that shouldn't be rendered inside its view window.

What this block does

Sets the maximum Z index limit captured by a specific standalone camera view sprite.

The block

Block ID: splitscreen_cameraViewSetZIndex

set camera view $cameraView to capture everything below z $z

Parameters

NameTypeDefaultMeaning
cameraViewSpritemyCameraViewThe target camera view sprite.
znumber99The highest Z depth layer to capture inside this camera view.

Example

let view = splitScreen.createCameraView(80, 60)
splitScreen.cameraViewSetZIndex(view, 50)

Add the extension

Add github:riknoll/arcade-split-screen to your project, or open: Import arcade-split-screen.