Jump to content

Tilemap Layer lost collision if position change


Zendrael
 Share

Recommended Posts

Hi!

 

I want to start drawing my layers of a tilemap in a specific X position of the world, so I do:

this.layer2 = mapa.createLayer('detalhes');this.layer2.fixedToCamera = false;this.layer2.scrollFactorX = 0;this.layer2.scrollFactorY = 0;this.layer2.position.set( MyXposition, 0);

That's ok but when I do that, all the collisions get lost! (they work if I don't change the X position)

 

How to handle or reposition the collisions?

 

Thanks

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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