Hello Barack,

Eric is correct. You cannot load all the layers *directly* as one *map*. 
cocos.tiles.load creates a Resource object. That object is kind of a 
dictionary, holding references to the different resources loaded from the 
file. In your case, for a *.tmx file, the Resource object will hold a 
reference to each TileSet object. This object will itself have the 
references to the images / textures. The Resource object will also have a 
reference for each RectMapLayer. The keys to access these layers are the 
name attributes that you gave in the TMX map editor.

It's the RectMapLayer which is a ScrollableLayer. So you can only add those 
the a ScrollingManager.

I hope it helps,
Dan.

-- 
You received this message because you are subscribed to the Google Groups 
"cocos2d discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/cocos-discuss.
For more options, visit https://groups.google.com/d/optout.

Reply via email to