antoine Posted December 15, 2014 Report Share Posted December 15, 2014 Hi, I've made a simple world which is larger than the screen, set the camera to follow the player, easy and works great. Now I'd like to add a static background (or foreground) layer, so they should not move when the camera changes position. How to do that? Thanks, Antoine Quote Link to comment Share on other sites More sharing options...
XekeDeath Posted December 15, 2014 Report Share Posted December 15, 2014 You will want a Phaser.Image with fixedToCamera set to true.Add this image to the game world first to put it behind everything. valueerror 1 Quote Link to comment Share on other sites More sharing options...
antoine Posted December 22, 2014 Author Report Share Posted December 22, 2014 Thanks, works perfectly. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.