I am using SKTiled.
The SKTileLayer.tileAt(0,0)
function returns the tile at a CGPoint
.
The SKTileLayer.pointForCoordinate(coord: CGPoint)
does the same.
All I want is to get a Tile on the Grid (0,0) and not tiles on CGPoint
s. That would be the first Grid in the map. How can I get the tiles in that way?
Edit: tileAt(0,0)
returns the first Grid but if I want to change the Player position to tileAt(0,0)
it ist not the real position.