samcrowleymusic Posted April 20, 2018 Share Posted April 20, 2018 I'm trying to offset the camera's follow on my player so that the player is closer to the bottom of the screen rather than being right in the center of the height. I'm using this code as per the example: game.camera.follow(player, Phaser.Camera.STYLE_PLATFORMER, 0.1, 0.1, 0, 300); And it does absolutely nothing. Link to comment Share on other sites More sharing options...
samid737 Posted April 20, 2018 Share Posted April 20, 2018 That is Phaser 2 api. Please use the Phaser 3 api. You can use scrollY to offset the camera A bit, something like: this.cameras.main.scrollY = gamecentery + someoffsetY Link to comment Share on other sites More sharing options...
Recommended Posts