fubeca6 Posted June 3, 2015 Share Posted June 3, 2015 Hi all, How can i expand my game.world (or stage?) Beyond the bounds of the screen such that I can then follow the player with thecamera?I would like to do this without using a tilemap.Thanks! Link to comment Share on other sites More sharing options...
Cawrtz Posted June 3, 2015 Share Posted June 3, 2015 In your State :game.world.setBounds(0, 0, width, height);with width, height the dimensions you wish for your world. then in the update loop :game.camera.follow(yourSprite);The world will scroll to keep the sprite on the screen. Link to comment Share on other sites More sharing options...
fubeca6 Posted June 13, 2015 Author Share Posted June 13, 2015 Sorry for the delay - this worked PERFECT though, thank you! Link to comment Share on other sites More sharing options...
Recommended Posts