Jump to content

tiles 1.1.4


AlexArroyoDuque
 Share

Recommended Posts

Hi!

I'm upgrading 1.1.3 to 1.1.4 the Phaser version.

 

I have problems with my tiles... In the game the tiles are white and collision doesn't works good.

 

This is my code:

preloader

            this.load.tilemap('level', 'assets/tiles/level.json', null, Phaser.Tilemap.TILED_JSON);

            this.load.image('tiles', 'assets/tiles/tiles.png', 16, 16);

 

create:

            this.map = this.game.add.tilemap('level');

 

            this.map.addTilesetImage('tiles');

 

            this.map.setCollisionByExclusion([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]);

 

            this.layer = this.map.createLayer('name in level');

 

            this.layer.resizeWorld();

 

 

 

Any help?

 

Greetings!

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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