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.

camera shake

Problem it solves

Player 2 just got hit by an obstacle or explosion and you want only their half of the screen to shake without affecting Player 1.

What this block does

Applies a screen shake effect to a specific split-screen camera for a set duration and intensity.

The block

Block ID: splitscreencamerashake

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

Parameters

NameTypeDefaultMeaning
cameraCameraCamera.Camera1Which camera view should shake
amplitudenumber4How intense the shake is in pixels (from 1 to 8)
durationnumber500How long the camera shakes in milliseconds

Example

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

Add the extension

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