I'm starting discovering Cocos2D to try making a TileMap based game.
To do so, I've started it in a simple way :
1) First, created a very simple map using Tiled
2) Then, I've put this code into the "HelloWorldLayer.m" :
self.tileMap = [CCTMXTiledMap tiledMapWithTMXFile:@"test.tmx"];
self.background = [_tileMap layerNamed:@"Background"];
[self addChild:_tileMap z:-1];
I obtain the following result on both the simulator and the iPhone :
What is strange is that I've also tried with Cocos2D 3, same result.
I've been trying for hours since now and I'm going crazy...
Why sprites aren't shown correctly ??
Please help !!!
Thanks a lot