I'm working on a tile-based game and really enjoying using Cocos2d. I have been using the support for TMXTileMaps and have things loading and displaying fine. However now I'm trying to implement "walkable" tiles. Currently in my map I have a single tileset that I can use for a given map, and then a second tileset that consists of 3 tiles - blank, "x" and solid. These indicate walkable, landable ( like a cloud style platform for instance ) and non-walkable.
I use the second tileset because many times there isn't a direct connection between a tile being present from the base tileset and whether or not it's walkable. And trying to break those up between multiple layers obviously isn't very ideal either, since it makes drawing the map more difficult.
So now the problem : By default, cocos2d does not add layers into the hash that aren't visible. This means I can't have a "walkables" layer with the special characters to indicate platforms and base that I can reference via getTileGidAt:. What would you guys recommend as the best / cleanest solution to this?
Thanks!