atomicptr / openfl-tiled

openfl-tiled is a library which gives OpenFL developers the ability to use the TILED map editor.
Other
45 stars 21 forks source link

More intuitive way to access layers, object groups and objects #22

Closed atomicptr closed 11 years ago

atomicptr commented 11 years ago

At the moment the only way to access layers, object groups and objects is via their attributes (map.layers[index], map.objectgroups[index] or map.objectgroups[index1].objects[index2]). It would be nice to access them like this:

var layer = map.getLayerByName("fancylayer");
var objectgroup = map.getObjectGroupByName("fancyog");
var object = map.getObjectByName("super_fancy_object");