# How can I get correct coordinates from a diamond isometric map created in Tiled?

I am rendering a diamond isometric map created in Tiled using Monogame.Extended.Tiled package.

Here is where I'm trying to spawn a player with an object at coordinates 224,224 on my map

Here is where it actually spawns within the game world.

I have some debug info at the top of the screenshot. 0, 0 in the gameworld is where the first tile is in the middle of the screen.

I understand how to get the correct coordinates when it is a staggered map. I know for a diamond it involves something with the halving the screen size and height but I'm personally stuck and have tried searching for this answer somewhere.

I just want to be able to convert the coordinates Tiled puts out, into the world space. If it comes to it, I will just use my own map renderer and go back to staggered but I would prefer not to.

My tiles are 64px wide, 32px tall

As usual, any help is appreciated and will provide any extra information.

# Edit

Here are updated screenshots with regards to the comment. I hope they're correct.

Below are tiles with the coordinates + origin. These are objects in Tiled where I wish to place something.

Here is where they are actually rendered.

I am confused as to why the origin is offset on the Y coordinate like that but this is rendered using Monogame.Extended.

pixelY = tileHeight * (tileX + tileY)/2 + tileHeight;

• Looks like that might solve it. I will give it try when I get a chance soon. I was getting very confused because MonoGame.Extended has a worldToScreen method but it wasn't lining anything up correct. Thanks in advance and I will accept this once I check it works. Sep 5, 2021 at 12:57
• Yeah it just needed this equation ontop of that worldToScreen method. Thanks for saving me from this headache. Sep 5, 2021 at 13:02
• Want to post your own answer showing how to incorporate this into your code alongside worldToScreen? Maybe call it a function tileToWorld 😉 That way you can accept your own answer and keep your bounty — I really don't need it. Sep 5, 2021 at 13:04
• Yeah I probably will make it an answer cheers. Just curious though, I'm doing some debugging and I'm wondering does any of the 32 represent the pixel width or height? My tiles are 64*32 so I was wondering if it's supposed to represent any of them Sep 5, 2021 at 16:25