set2d_parallax()
Set 2D Layer Parallax | Action ID: Set2DParallax
Change a named 2D layer's parallax ratio.
| Option key / field | Meaning and accepted 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. The call waits for its runtime routine to return; no additional completion wait is promised by this schema.
set2d_parallax({"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.
