Using LibGDX how can I retrieve the current Index (x, y) of the Map that something is placed in? I thought I would be able to get the width/height of the map, then multiply these by the resolution, then do some calculations of the players position in game-space to return it, but… Apparently not.
If you want to know what tile the player is on, take player world position (x,y) and divide with tile width and tile height. That should give you the tile index.
You will need to account for possible offset otherwise it will say your player is on tile 4 when your on the right hand side of tile 3.