legnox Posted January 4, 2014 Share Posted January 4, 2014 How do I create a tilemap using tilemap create()? I haven't got a clue. I tried this but no dice :/ function create() { game.tilemap.create('map1',32,32); map = game.add.tilemap('map1'); map.fill(20, 0, 0, 16, 16, 0); //just filling a section with something tileset = game.add.tileset('tileset'); tileset.setCollision(20, true, true, true, true); layer = game.add.tilemapLayer(0, 0, 512, 512, tileset, map, 0); layer.resizeWorld(); Link to comment Share on other sites More sharing options...
Recommended Posts