stnight99 Posted November 11, 2015 Share Posted November 11, 2015 Hello guys, I'm using the Tilemap as my Level editor. Is there anyway to put an image as a background layer on a tilemap and apply a parallax scrolling whenever the camera is moving? Link to comment Share on other sites More sharing options...
jmp909 Posted November 11, 2015 Share Posted November 11, 2015 Try something like this maybe (bg is not part of tilemap) create:this.bg = this.game.add.tileSprite(0, 0, 800,600, 'jungle'); this.bg.fixedToCamera = true;update:this.bg.tilePosition.x = this.layer1.x * -0.7; Link to comment Share on other sites More sharing options...
stnight99 Posted November 11, 2015 Author Share Posted November 11, 2015 @jmp909 Thanks, going to try that. Link to comment Share on other sites More sharing options...
Recommended Posts