I have a TMX file with a MAP layer and Object layer (called decorations, with property type = "decorations"). Is there an easy way to add the whole layer to the scene with all objects? Or do I have to iterate through objects and add them one by one?
\$\begingroup\$
\$\endgroup\$
2
-
\$\begingroup\$ I can't change the layer to Map Layer, because the decorations are placed with pixel precision. \$\endgroup\$MartinTeeVarga– MartinTeeVarga2013-05-22 00:43:41 +00:00Commented May 22, 2013 at 0:43
-
\$\begingroup\$ I am going through the AndEngine TMX sources and it looks like it doesn't count with an object being an actual tile from some tileset. \$\endgroup\$MartinTeeVarga– MartinTeeVarga2013-05-22 01:25:21 +00:00Commented May 22, 2013 at 1:25
Add a comment
|
1 Answer
\$\begingroup\$
\$\endgroup\$
After analyzing the TMX extension code, I am pretty sure there is no easy way. The extension doesn't implement objects layers as attachable to the scene, nor it read all information from the TMX file in the current version.