Hi everyone,
I'm currently coding a top down rpg style game, and I want to create
multiple visible map layers so the hero can go under or behind objects
on the map, like clouds, rooftops and walls.  I'm using a tga map
editor called tiled 
http://kwigbo.com/wp/2009/03/15/cocos2d-alternative-map-editor/
I asked it's creator about this problem and he said the solution would
probably be to:

Since each TileMapAtlas only displays one channel from the .tga (The
Red channel) you would need multiple .tga files and TileMapAtlases to
display multiple layers of static tiles. The way it is now a single
tile map made with the map editor plugin can hold one layer of static
tiles and two layers of “codes”. Codes can be used for whatever
purpose you can dream up but will not be displayed by a TileMapAtlas.
You can only read codes from the map a decide how they should be used.
A modification to the plugin would allow you to create multiple .tga
files from one map if there was more than one tile layer. I will try
to implement this when I get some time as it seems it would be a nice
feature. Although you would still need multiple TileMapAtlases for the
display.

My problem is how to add another TileMapAtlas to cocos2d or how make
that file support multiple layers.  If anyone has an easier solution
to this problem please let me know.  But so far it looks like if I
want a multilayered tile map I need to create two .tga map files and
then create an additional tilemapatlas file to handle the new layer.
If anyone has any ideas on how to do this it would be much
appreciated.
Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"cocos2d discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cocos-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to