Jump to content

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


Pau
 Share

Recommended Posts

Hello,

I have design this car path with tiled editor:

in-tiled.png.276aa7745db990afc0749851e19fb499.png

but when i load it in phaser i see this:

image.png.d03d1c056e9e84ce4cab7b073cc1eb7f.png

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...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

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