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 border color

Problem it solves

The line dividing your player screens is hard to see or doesn't match the colors of your game.

What this block does

Sets the outline color for borders drawn around split-screen camera regions. Set to 0 (transparent) to remove borders.

The block

Block ID: splitscreensetBorderColor

set border color $color

Parameters

NameTypeDefaultMeaning
colornumberThe color index (0-15) to draw borders around split-screen regions.

Example

splitScreen.setBorderColor(3)

Add the extension

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