Jump to content

Rotation of tiles in tiled application has no effect in phaser 3


Recommended Posts


I have design this car path with tiled editor:


but when i load it in phaser i see this:


It's like the tile rotation i made in tiled is no working in phaser.

This is the code i use to load it the tilemap:

function preload(){
  this.load.tilemapTiledJSON('level1', 'map.json');
  this.load.image('nombreDelTilesetEnPhaser', '../img/tiles.png');
function create(){
  map = this.make.tilemap({key:'level1'});	
  tileset = map.addTilesetImage('nombreDelTilesetEnTiled', 'nombreDelTilesetEnPhaser');
  backgroundLayer = map.createStaticLayer('background', tileset,0,0);	

How can i get the tiles rotation working in phaser as i can see on tiled editor?

Thank you in advance.

Link to comment
Share on other sites

  • 6 months later...

  • Recently Browsing   0 members

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