Jump to content

How to collide with slanted tiles?


Qqwy
 Share

Recommended Posts

Hello there, I'm teaching myself Phaser while working on a small platformer.

 

What I'm wondering about: Say I use a tileset such as this one:

Tileset109.png

 

 

Simple AABB collision using Arcade on the tile map is shown in this example: http://examples.phaser.io/_site/view_full.html?d=tilemaps&f=map+collide.js&t=map%20collide

 

However, as in this tile map there are many slanted/sloped tiles. This is where using just Arcade falls apart.

What is the proper way to let the player collide with these slanted tiles in Phaser?

 

I'm not scared to get my hands dirty with writing some custom code, but if there's a way to do it already, I'd like to know.

 

 

Thank you,

 

Qqwy

 

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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