Set2DParallax()
Set 2D Layer Parallax
Change a named 2D layer's parallax ratio.
| Option key / field | Meaning and input | Default |
|---|---|---|
| Room (empty = current) sceneId | Choose a scene ID. May be blank. | Blank |
| 2D Layer ID layerId | Text. | Blank |
| Parallax Ratio XY ratio | [X, Y] numeric array. | [1.0, 1.0] |
Timing. Waits for the runtime routine to return; no further completion wait is promised by this schema.
await Set2DParallax({"sceneId": "lab", "layerId": "", "ratio": [1.0, 1.0]})In use. Use a smaller camera-motion ratio for a distant sky and a larger one for nearby scenery. The layer must already be set up with suitable artwork and coverage; a ratio does not extend the bitmap.
