-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hexagonal TileMap Bounding Box Issue #523
Comments
Tiled does not store the bounding box into the map file, since it can be derived from the map orientation, size and the tile sizes. Hence, if you're getting the bounding box for this hexagonal map from cocos2d-iphone, then this would indicate a bug in that library and not in Tiled. Please ask for help through their support channels. |
Thanks Bjorn. I will write to cocos2d forum. |
Wheres a sexy spritekit hex map library ? Am I gonna have to write the mofo ? |
@tomschulz There's a Sprite Kit based library for Tiled maps here: http://koboldkit.com, which is open source so it should be a good start when you're interested in hexagonal rendering. Unfortunately the current version of Tiled doesn't support hexagonal maps yet, but you could try one of the forks mentioned at #1 or the old Java version for editing hexagonal maps. |
Hi,
I've just started developing iOS games and want to develop one which needs a hexagonal tiled map. While Qt version of Tiled does not support hexagonal map, the Java version did and so I downloaded it and gave it a try.
I created a simple map successfully and can load it in my cocos2d app. However when I try to place it at the centre of the screen by the following code:
I found that the tilemap wasn't placed exactly at the centre. To investigate the issue, I draw the bounding box (in white) of the map and see the following:
It seems that the bounding box is wrong. It leaves a lot of space at the right and does not cover the 2 bottommost hexagons.
I did not find any hint of how the bounding box is set and no such settings is available in Tiled. Any help is greatly appreciated.
Billy
The text was updated successfully, but these errors were encountered: