Skip to reading
Shaders, Effects & Layered Scenery

Appendix C. A current-stage parallax plane

Edition 0.86.4.0

Revised 0.86.4.0 edition with new supplements; earlier 0.86.3.4 lessons and screenshot labels are retained within the supplied PDF.

Download PDFView PDF page

This object describes one current Stage Parallax Plane. It belongs inside that room’s stage2D.parallaxLayers array, not in the project root or an older native layer array. Prefer the visual Inspector while learning.

Code example
{
  "id":"near_frame",
  "name":"Clockwork Foreground Plane",
  "assetId":"foreground_frame",
  "visible":true,
  "order":0,
  "parallax":[1.25,1.0],
  "worldSize":[32.0,18.0],
  "position":[0.0,-0.06,0.0],
  "rotation":[0.0,0.0,0.0],
  "scale":[1.0,1.0,1.0],
  "depth":-50,
  "pixelPerfect":false
}
Source table from Appendix C. A current-stage parallax plane, page 86
FieldInterpretation
assetIdA separately imported image with useful transparency.
worldSizeWidth and height across the stage’s X/Z plane.
parallaxHorizontal and vertical factors. 1 is world-fixed; a larger factor moves faster in view.
position / rotation / scaleThe layer’s own authored transform.
visible / order / depthVisibility and authored composition controls. Test the actual layer stacking.

A configuration edit does not promise an immediate rebuild of existing stage planes. Save and test a fresh room presentation. Do not use Set 2D Layer Parallax as though it were a current-stage plane setter.

Page 86 of 93Permalink
Go to page