I am having an issue with the isometric coordinates.
When I enter the coordinates (5,5), the character should be at the bottom corner of the tile, but it is at the top corner, (5,5) and (0,0) look like they have been switched :

With (5,5), my character goes at the top instead of being at the bottom corner :

(The convertToScreen method is from : Isometric rendering and picking? )
//create isometric tiles public Vector2 convertToScreen(float x, float y, int offsetX, int offsetY) { Vector2 screen; float TILE_WIDTH = 1; float TILE_DEPTH = 0.5f; //calculate the screen coordinates float _x = offsetX - (y * TILE_WIDTH/2) + (x * TILE_WIDTH/2) - (TILE_WIDTH/2); float _y = offsetY + (y * TILE_DEPTH/2) + (x * TILE_DEPTH/2); screen = new Vector2(_x, _y); return screen; } //in the "create" method float valueCam = 10; camera = new OrthographicCamera(valueCam, valueCam * (Gdx.graphics.getHeight() / (float)Gdx.graphics.getWidth())); camera.translate(new Vector2(0,0)); Vector2 conv = convertToScreen(5,5, 0,0); myCharacter.setPosition(conv.x, conv.y); public void renderMap(){ float tileWidth = 1; float tileHeight = 0.5f; for (int x = 0; x < 5; x++){ for(int y = 5-1; y >= 0; y--){ Vector2 v = convertToScreen(x,y, 0,0); float x_pos = v.x; float y_pos = v.y; //float x_pos = (x * tileWidth*0.5f ) + (y * tileWidth*0.5f); //float y_pos = - (x * tileHeight*0.5f) + (y * tileHeight*0.5f); (edit: the previous issue was the offset of x-1, fixed by changing the x_pos and y_pos as shown above)
render mapin order to use the sameconvertToScreenmethod, except (0,0) and (5,5) are still switched? The image in my edit shows the character at 5,5, at the top corner, instead of being at the bottom. \$\endgroup\$