leonardovilarinho Posted November 28, 2016 Share Posted November 28, 2016 I have a tilemap, like this: Quote this.load.tilemap('map', 'assets/tileset.json', null, Phaser.Tilemap.TILED_JSON); map = this.add.tilemap('map', 64, 64); map.addTilesetImage('tileset'); layer = map.createLayer(0); layer.resizeWorld(); map.setCollisionBetween(0, 46); map.setTileIndexCallback(47, this.resetPlayer, this); The tile number 47 in reality is a 64x15 Thorn, I want to know how do I change the size of the collision box him just to be 64x15 and not 64 x 64. EDIT: Put all code attached. Thank you in advance. phaser.tar.gz Link to comment Share on other sites More sharing options...
Recommended Posts