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.

center camera

Problem it solves

You want one of the split screens to focus on a fixed map location, like a boss room or a race finish line, instead of following a sprite.

What this block does

Positions a split-screen camera at fixed (x, y) pixel coordinates in the world.

The block

Block ID: splitscreencentercameraat

center camera $camera at x $x y $y block

Parameters

NameTypeDefaultMeaning
cameraCameraCamera.Camera1Which camera view to move
xnumber0The horizontal pixel position to center on
ynumber0The vertical pixel position to center on

Example

splitScreen.centerCameraAt(splitScreen.Camera.Camera2, 80, 60)

Add the extension

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