0

So I've been trying trying to make an SKTileMap using the xcode editor.
I have downloaded the assets from here.
Put everything in my assets, and created an empty tileset that I filled with the tiles.
Now when I go make the tile map on my sks file, the tiles don't fit the map at all, like shown on this picture.
I tried changing the size of my tiles which gives me a better looking result, however the textures are not centered on the hexes like you can see here.

So I'm guessing I'm missing something obvious, but I couldn't find any tutorials on adding custom hex tiles online. Anyone knows how I should proceed?
thanks.

Accordeon
  • 3
  • 1

1 Answers1

0

The main problem or incompatibility here are the images.

For SKTileMap node using a Hexagonal Pointy SpriteKit Tile Set the images should have a super-specific ratio like a top view. If you see the Apple example:

enter image description here

Of course, you can try to simulate the camera/isometric effect but the hexagons should have the right size. If you compare both tiles it has completely different points of view.

enter image description here

If you transform the image to right aspect, can get some like this:

enter image description here

I'm not really an expert on * Hexagonal Pointy SpriteKit Tile Set * and I couldn't find more documentation about it, I hope @Knight0fDragon can guide us a little more.

Maetschl
  • 1,330
  • 14
  • 23