tmSetLayerParallax

Category: Tilemap — Layers

Syntax:

tmSetLayerParallax:Void(map:Int, layer:Int, factorX:Double, factorY:Double)


Parameters

Returns

Nothing.



Summary

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.



Example
tmSetLayerParallax(map, hills, 0.5, 1.0)

BambooBasic © 2026 Michael Denathorn