Jump to content

tilemap not centered


Recommended Posts

Hello everyone


So i have been messing around with tilemaps on the mobile device but i seem to be running into a centering issue.


I have tried doing rest on the tilemaplayer but that doesnt work or setting the anchor point. 


attached is the screen shot of what I am talking about. 


the code is as follow 


map = game.add.tilemap('map');
layer = map.createLayer('Tile Layer 1'); 
game.load.image('wall', 'maze/wall.png'); 
game.load.tilemap('map', 'maze/map.json', null, Phaser.Tilemap.TILED_JSON);



anyone have any suggestions on centering this?




Link to comment
Share on other sites


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...