Does anyone have any clue how to get correct coordinates for Objects in an Object Group for Isometric maps?
So I have a couple of layers for my map and I can correctly parse out whatever i want from tile layers. However Object layers is something completely different.
Here we have some sample code of what I am doing:
CCTMXObjectGroup *group = [map objectGroupNamed:@"Level End"];
if (group != nil) {
NSDictionary* levelEnd = [group objectNamed:@"Object"];
int x = [[levelEnd valueForKey:@"x"] integerValue];
int y = [[levelEnd valueForKey:@"y"] integerValue];
}
The XY coordinates exported from Tiled are not appropriately converted for Isometric maps for me (haven't tried orthogonal). The point I get returned from this is somewhere way off from where it is supposed to be in both the x and y axis.
I assume I must be doing something wrong, otherwise I would have found another thread about this on the forum.
I am using bleeding edge but couldn't find any info in the revision changes that this should have been changed recently.
Assistance or confirmation on this would be nice.