Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
Notice removed Draw attention by CommunityBot
Bounty Ended with no winning answer by CommunityBot
Notice added Draw attention by Emobe
Bounty Started worth 100 reputation by Emobe
updated screenshots
Source Link
Emobe
  • 11
  • 6

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

Spawn

Here is where it actually spawns within the game world. Actual game

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.

enter image description hereenter image description here

Here is where they are actually rendered.

enter image description hereenter image description here

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

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

Spawn

Here is where it actually spawns within the game world. Actual game

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.

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.

enter image description here

Here is where they are actually rendered.

enter image description here

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

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

Spawn

Here is where it actually spawns within the game world. Actual game

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.

enter image description here

Here is where they are actually rendered.

enter image description here

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

Extra detail as required from the comment
Source Link
Emobe
  • 11
  • 6

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

Spawn

Here is where it actually spawns within the game world. Actual game

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.

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.

enter image description here

Here is where they are actually rendered.

enter image description here

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

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

Spawn

Here is where it actually spawns within the game world. Actual game

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.

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

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

Spawn

Here is where it actually spawns within the game world. Actual game

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.

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.

enter image description here

Here is where they are actually rendered.

enter image description here

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

Source Link
Emobe
  • 11
  • 6

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

Spawn

Here is where it actually spawns within the game world. Actual game

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.

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