dp_
dp_

Reputation: 75

staggered map display error in cocos2d

I am trying to load staggered map, created at Tiled Map Editor. But something goes wrong. Simple isometric map is loaded ok. Here's what it look like in Tiled Map Editor: http://gyazo.com/eb2d5643f03ab453330aa573a7b99f3e

Here is the result of loading this map: http://gyazo.com/117930a33f4207f74bb5b56979df4eec

Here's how I load the map (and again simple isometric is loaded ok with the very code)

-(id) init    
{
    tileMap = [CCTMXTiledMap tiledMapWithTMXFile:@"test_tile_map_offset.tmx"];
    background = [tileMap layerNamed:@"Background"];

}

What am I doing wrong? Need help.

Upvotes: 1

Views: 207

Answers (1)

CodeSmile
CodeSmile

Reputation: 64477

Cocos2d's CCTMXTiledMap class does not support "staggered" (rectangular) isometric tilemaps.

You would have to change the code or write a custom renderer.

Upvotes: 2

Related Questions