Jump to content
This forum will be closing down. Please move to the respective dedicated project forums.

Phaser.Tileset - image tile area is not an even multiple of tile size


Rodrigo Silveira
 Share

Recommended Posts

Excuse my ignore here. My image contains 23 tiles of 16x16. The total image size is 368x16. There is no padding between tiles, and no margin around the tileset.

// * * * * * * * inside preload() * * * * * * *// I realize this last param is not needed in my case --------vthis.load.spritesheet('blocks', 'blocks-tileset.png', 16, 16, 23);// * * * * * * * inside create() * * * * * * *let map = this.add.tilemap();map.addTilesetImage('blocks');

Ideas?

 

Edit

 

If I simply scale up my image so that each tile is 32x32, then everything works as expected. Is there a reason for this?

post-14482-0-33372600-1440867865.png

post-14482-0-83598100-1440868134.png

Link to comment
Share on other sites

  • 4 months later...
 Share

  • Recently Browsing   0 members

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