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
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
| camera | Camera | Camera.Camera1 | Which camera view should shake |
| amplitude | number | 4 | How intense the shake is in pixels (from 1 to 8) |
| duration | number | 500 | How 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.