Jump to content

Collisions not working with multiple tilemap layers


caymanroe
 Share

Recommended Posts

Hi guys,

I've built one or two small, simple games with Phaser before but this is the first time I'm working with tilemaps. Hopefully someone can offer some advice.

I'm working on a topdown game. I created a tilemap in Tiled with 3 layers. (floor, wall 1 and wall 2 ). The problem is I can get collisions to work on a single layer if I combine the wall layers into the same layer as the floor (so I just have one layer), but I can't get the player to collide with a second layer.

TLDR: Is is possible to set up tilemap collisions with multiple layers?

Thanks in advance. I've been stuck on this all day.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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