It would be fantastic if you could make the Tile ID available when a collision is detected with a Tilemap.
Develop games in your browser. Powerful, performant & highly capable.
Thanks for replying.
I'll have a play and see what I can come up with.
This seems like such a simple thing to want, but for the life of me I can't figure it out.
When my character's sprite collides with a tilemap tile, how do I get the Tile ID of the tile in the collision?
If I do the whole:
TilemapObstacles.TileToPositionX(TilemapObstacles.PositionToTileX(Player.X))[/code:3e6dfuw1] I get the tile position of the Player, not the tile involved in the collision. Ie the tile returned is one position above, below or to the left or right of the tile I'm interested in. Any help gratefully received....
Member since 1 Oct, 2012