Jump to content
This forum will be closing down. Please move to the respective dedicated project forums.

TileLayer collide not move follow tilelayer


tyroroto
 Share

Recommended Posts

Hi 

 

I have problem with tilelayer collide the problem is TileLayer Collide not move follow tilelayer  when is move tilelayer. :(

map = this.add.tilemap('lilmap');
map.addTilesetImage('map','map_atlas');

this.backgroundLayer = map.createLayer('Background');

this.backgroundLayer.fixedToCamera =false;  

this.backgroundLayer.x += 40; // move tilelayer +40 and i try position() too


 

 

the result my tile is moved but tile collide still at same place.

I attach result image.

 

how can i fix it or another way for move tilelayer to center of screen.

 

 

thank you.

post-15855-0-07681400-1440153328.png

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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