Category: Tilemap
Syntax:
tmSetLayerParallax:Void(map:Int, layer:Int, factorX:Double, factorY:Double)
Void
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.
Takes map (The map's handle), layer (The layer's number, from tmAddLayer or tmGetLayer), factorX (The horizontal factor), factorY (The vertical factor).
Returns nothing.
View detailed documentation online
tmSetLayerParallax(map, hills, 0.5, 1.0)
BambooBasic © 2026 Michael Denathorn