Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by paulh

Hi

I cna only find this as the way to control the scrolling speed of the layers (parallex), is there a way of setting each layers individual speed?

background-map.js
setScreenPos: function( x, y ) {
		this.scroll.x = x / this.distance/0.6;
		this.scroll.y = y / this.distance;
	},

1 decade ago by Xander

Scrolling speed of layers is handled with the 'distance' attribute, I believe. Watch the Level Editor tutorial. Dominic outlines it there: http://impactjs.com/documentation/video-tutorial-weltmeister
Page 1 of 1
« first « previous next › last »