1 decade ago
by Joncom
I see distance="1" when I look at my map with a text editor, and I'm just curious what that means.
What is the distance property of a layer (in a map) used for?
http://impactjs.com/documentation/class-reference/backgroundmap#distance
Distance factor of the BackgroundMap, indicating how fast the Map scrolls when .setScreenPos() is invoked. With a distance of 1, the Map scrolls synchronous to the screen. With a distance of 2 the Map scrolls with half the speed, making it appear farther in the background. The default is 1
In short, its for the parallax effect.
Page 1 of 1
« first
« previous
next ›
last »