InsOp Posted May 31, 2015 Share Posted May 31, 2015 Hello folks, if i am scaling the world/cameragame.phaser.camera.scale.x += delta;game.phaser.camera.scale.y += delta;i can pan outside the map. how to resolve this issue? Link to comment Share on other sites More sharing options...
InsOp Posted May 31, 2015 Author Share Posted May 31, 2015 Okay this issue was related to the way ive implemented my tilemap. now im having troubles with zooming out the map. well zooming works, but im getting a padding at the right and at the bottom - see for yourselves Link to comment Share on other sites More sharing options...
drhayes Posted June 1, 2015 Share Posted June 1, 2015 I don't believe you can scale using the camera that way; it has those properties because of inheritance but doesn't use them directly or in expected ways. I think you should try scaling the world instead, e.g. "game.world.scale.x = 2;" Link to comment Share on other sites More sharing options...
InsOp Posted June 1, 2015 Author Share Posted June 1, 2015 thanks, but still having the same issue. i want to scale out, not to scale in. a workaround could be that i initially make the tiles half the size, but dont know how to accomplish that Link to comment Share on other sites More sharing options...
Carlos Posted June 2, 2015 Share Posted June 2, 2015 If you want to scale from the center you have to set the pivot property to the middle of whatever you are scaling. Link to comment Share on other sites More sharing options...
InsOp Posted June 4, 2015 Author Share Posted June 4, 2015 yes, but that wasnt what i asked Link to comment Share on other sites More sharing options...
InsOp Posted June 9, 2015 Author Share Posted June 9, 2015 having solved this issue with the help of xervers topic:http://www.html5gamedevs.com/topic/8897-scaling-down-a-tilemap-layer/#entry52797 Link to comment Share on other sites More sharing options...
Recommended Posts