MarvinBeer Posted February 10, 2015 Share Posted February 10, 2015 I'm still learning and i made this:http://marvinbeer.itch.io/cube-platform How can... "focus" on the side of the game world where the player is?Like a Zoom or a scale up of all the world.Thanks! Link to comment Share on other sites More sharing options...
joey Posted February 16, 2015 Share Posted February 16, 2015 You can tell the Phaser camera to follow your hero/main sprite using:game.camera.follow(player);and you can "cull" sprites using: s.autoCull = true; //where s is a sprite you want to cullTo "cull" a sprite means to only render it when it is inside of the game bounds. This is something I just learned about and have not yet experimented with but is worth noting to save you the trouble I had with rendering problems (choppy playback). So, instead of zooming in on what you have, why not make it at the ideal size and then follow and cull? Just some of my thoughts for you! hollowdoor 1 Link to comment Share on other sites More sharing options...
Recommended Posts