Author Topic: Tile edge / border walls  (Read 744 times)


  • Member
  • **
  • Posts: 83
  • Karma: +0/-0
  • smell the sound
    • View Profile
    • n8bit
Tile edge / border walls
« on: Fri, May 27, 2011 »
Hey Flixel,

I'm trying to set up walls in my game to be the edge / border of the respective tiles. I have a tile for each type of wall. Left, right, top, bottom, and corners.

I have collisions for the outside of the walls working with the setTileProperties() function allowing certain collisions. I'm kind of stumped on what to do for checking collision with the interior of the walls, when the player is overlapping the tile.

Is there a way I can get the tile's index that the player is overlapping?
"A designer knows he has achieved perfection not when there is nothing left to add, but when there is nothing left to take away."
-Antoine de Saint-Exupery