Rodrigo Silveira Posted August 29, 2015 Share Posted August 29, 2015 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? hoskope 1 Link to comment Share on other sites More sharing options...
hoskope Posted January 7, 2016 Share Posted January 7, 2016 I'm interested in when and why this happens and how to get rid of it? Link to comment Share on other sites More sharing options...
WombatTurkey Posted January 7, 2016 Share Posted January 7, 2016 I don't believe those frames are equally 16x16, or 32x32. Also, 23 is counting the index (0) For example, the first and last frame are not 16x16 they all have to be the same dimensions AFAIK Link to comment Share on other sites More sharing options...
Recommended Posts