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 region

Problem it solves

You want to arrange multi-player screen layouts differently, such as dividing the screen horizontally or vertically into custom sections.

What this block does

Assigns a specific camera to draw on a defined region of the screen, such as the left half, right half, or top-left corner.

The block

Block ID: splitscreensetcameraregion

set camera $camera region to $region

Parameters

NameTypeDefaultMeaning
cameraCameraThe camera whose screen region you want to set.
regionCameraRegionThe region preset (e.g. VerticalLeftHalf, TopLeft) to assign to this camera.

Example

splitScreen.setCameraRegion(splitScreen.Camera.Camera1, splitScreen.CameraRegion.VerticalLeftHalf)

Add the extension

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