Jump to content

tilemap not centered


conradk
 Share

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');
map.addTilesetImage('wall'); 
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?

 

thanks

post-12618-0-16427600-1422315971_thumb.p

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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