Jump to content

How do I create a tilemap using tilemap create()?


legnox
 Share

Recommended Posts

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

 Share

  • Recently Browsing   0 members

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