Category: Tilemap — Layers
Syntax:
tmSetLayerParallax:Void(map:Int, layer:Int, factorX:Double, factorY:Double)
Nothing.
Sets how fast a layer moves with the camera. 1.0 moves with it, 0.5 at half speed for a distant background, 0 not at all.
See the Tilemaps guide.
tmSetLayerParallax(map, hills, 0.5, 1.0)
BambooBasic © 2026 Michael Denathorn