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 multiplayer cameras and picture-in-picture camera view sprites to MakeCode Arcade games.

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

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

Parameters

NameTypeDefaultMeaning
cameraViewSpritemyCameraViewThe camera view sprite to configure
znumber99The 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.