center camera
Problem it solves
You want one of the split screens to focus on a fixed map location, like a boss room or a race finish line, instead of following a sprite.
What this block does
Positions a split-screen camera at fixed (x, y) pixel coordinates in the world.
The block
Block ID: splitscreencentercameraat
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
| camera | Camera | Camera.Camera1 | Which camera view to move |
| x | number | 0 | The horizontal pixel position to center on |
| y | number | 0 | The vertical pixel position to center on |
Example
splitScreen.centerCameraAt(splitScreen.Camera.Camera2, 80, 60)
Add the extension
Add github:riknoll/arcade-split-screen to your project, or open: Import arcade-split-screen.