notalentgeek Posted May 10, 2016 Share Posted May 10, 2016 These are the codes. _Game.camera.scale.x = 4; _Game.camera.scale.y = 4; _Game.camera.setBoundsToWorld(); _Game.camera.bounds.height = 576 * _Game.camera.scale.y; _Game.camera.bounds.width = 1024 * _Game.camera.scale.x; _Game.camera.bounds.x = 0 * _Game.camera.scale.x; _Game.camera.bounds.y = 0 * _Game.camera.scale.y; _Game.camera.update(); _Game.camera.y += 2; My game resolution is 1024 x 576 pixels. The _Game.camera.y += 2 is put in update function, yet the camera can still go out from screen. Also what is the different between _Game.camera.view.y and _Game.camera.y? Link to comment Share on other sites More sharing options...
Recommended Posts