ParallaxLayer# ParallaxLayer

new ParallaxLayer(imagePath, scrollFactor)

Parameters:
NameTypeDefaultDescription
imagePathstring

Path to background image.

scrollFactornumber0.5

Scroll speed relative to camera (0 = fixed, 1 = normal, <1 = slower).