This repository was archived by the owner on May 24, 2018. It is now read-only.

Description
Please consider adding this function to Tilemap.hx
/**
* Returns all objects with matching name in a given object group
* @param name The name of the object
* @param inObjectGroup The object group which contains this object.
* @return An TiledObject, null if there is no such object.
*/
public function getObjectsByName(name:String, inObjectGroup:TiledObjectGroup):Array<TiledObject>
{
var k:Array<TiledObject> = new Array<TiledObject>();
for(object in inObjectGroup) {
if(object.name == name) {
k.push(object);
}
}
return k;
}
and subsequently changing getObjectByName comment to
/**
* Returns first object with matching name in a given object group
* @param name The name of the object
* @param inObjectGroup The object group which contains this object.
* @return An TiledObject, null if there is no such object.
*/
Reasoning behind is pretty simple - a lot of times i use standardized objects within given map and just copy-paste them. Changing name for every single one of them would be stupid, to say the least.