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.

camera shake

Problem it solves

Player 1 gets hit or triggers an explosion, and you want only Player 1's split-screen view to shake without affecting Player 2's screen.

What this block does

Shakes a specific split-screen camera view by a specified pixel distance for a given duration in milliseconds.

The block

Block ID: splitscreencamerashake

camera $camera shake by $amplitude pixels for $duration ms

Parameters

NameTypeDefaultMeaning
cameraCameraThe camera view to shake.
amplitudenumber4How many pixels wide the shake vibration is.
durationnumber500How long the shake effect lasts in milliseconds.

Example

splitScreen.cameraShake(splitScreen.Camera.Camera1, 5, 500)

Add the extension

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