Jump to content

Collision/Bounding box for tilemap tiles with transparency


16patsle
 Share

Recommended Posts

I've got some one-way tiles that use a custom collision handler to detect if the tile is colliding from any side but the top (and a special case for if the other sprite has just passed through it). I wonder if you couldn't write your own collision handler for your sloped tiles and then, assuming you're using a tilemap, call "setCollision" for every tile that's a slope?

 

I haven't seen any grossly negative performance problems yet.

Link to comment
Share on other sites

  • 9 months later...

Thank you for the feedback. Since there is no support for sloped tiles as rich said I will probably just use the normal tiles for now. The custom collision handler seems like it could work though so maybe I will look into it at some point. It would also be a nice addition if there was support for this.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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