Problem when detecting corner cell of tile map???
private void getTiles(int startX, int startY, int endX, int endY, Array<Rectangle> tiles) {
TiledMapTileLayer layer=(TiledMapTileLayer)WorldRenderer.map.getLayers().getLayer(0);
TiledMapTileLayer layer1 = (TiledMapTileLayer)WorldRenderer.map.getLayers().getLayer(1);
layer_Height=layer1.getHeight();
layer_width=layer1.getWidth();
leftcornerCell=layer1.getCell(0, 0);
It calculate the screen x/y while i want to give map x/y.
and gives result nullpointer exception.... Meeans not finding the cell at perticuler position.
How to find out corner cell of any Tilemap in LibGdx???