Jump to content

2.8.4 and Tiled: How to set the object layer as a collision layer


Anicet
 Share

Recommended Posts

Hi everyone,

I'm actually making a simple 2d platformer with arcade physic and I recently implemented a tiled tilemap which contain an "object layer". In this object layer I draw collision zone with the polyline tool. Now I want thoses "collision zones" to be recognized by phaser. Which mean : if the player overlap "object layer"'s content, it will blocked as if it was a wall.

I just want to know if this is possible or if I must set collision "on" for my tile layers in which I may put all my walls tiles.

Also, If I must use the 2nd solution, if my tile sprite is smaller than my 24x24 tile square (I attached an example), will the hitbox fit the sprite size or the 24x24 square ?

Thanks beforehand.

ddzdd.png

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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