Hi, I am trying to create a tiled map in my game but when I have ported the game to android (on iOS platforms it works fine), the game launches a error saying “Get data from file(/tiles.png) failed![](".
The files locations are “assets/world.tmx”, “assets/tiles.png” and the tmx data is:
I have defined the CCFileUtils::sharedFileUtils()~~>setResourceDirectory; for every target, so every resource will be searched in this folder.
~~ The files world.tmx and tiles.png are in the folder “Resources/iphonehd”
When I declare the tiled map using CCTMXTiledMap* map = CCTMXTiledMap::create(“world.tmx”); it works on iphone but in android it throws the explained exception in the first post.
If I change the creation of the map on Android, using CCTMXTiledMap* map = CCTMXTiledMap::create(“iphonehd/world.tmx”); it works…
I do not know why this difference on iOS and Android… could someone explain that?