create camera view sprite width height
Problem it solves
You want a picture-in-picture mini-map, rear-view mirror, or security monitor sprite floating on screen while the game plays.
What this block does
Creates a sprite that displays a live camera view of your game world at the specified size.
The block
Block ID: splitscreen_createCameraView
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
| width | number | 160 | Width of the camera view sprite in pixels |
| height | number | 120 | Height of the camera view sprite in pixels |
Returns
Sprite — The newly created camera view sprite.
Example
let miniCam = splitScreen.createCameraView(40, 30)
Add the extension
Add github:riknoll/arcade-split-screen to your project, or open: Import arcade-split-screen.