Skip to content
Kadoba edited this page Feb 12, 2013 · 8 revisions

##Public ###Data ObjectLayer.map (default: nil)
The map that the layer belongs to.

ObjectLayer.name (default: "Unnamed ObjectLayer")
The name of the object layer. ObjectLayers are indexed by this in the map.

ObjectLayer.color (default: {255,255,255})
The color theme of the ObjectLayer.

ObjectLayer.opacity (default: 1)
The opacity of the layer. 1 = 100%. This is multiplied into the drawing alpha

ObjectLayer.objects (default: {})
A table of the objects stored on this layer indexed by their order of placement.

ObjectLayer.properties (default: {})
The properties set by Tiled.

ObjectLayer.visible (default: true)
If false then the layer will not be drawn

ObjectLayer.class (default: "ObjectLayer")
The class name

###Functions ObjectLayer.newObject (name, type, x, y, width, height, gid, prop)
Creates a new object and adds it to the layer. See Object.new

ObjectLayer.draw ()
Draws the object layer.

ObjectLayer.toCustomLayer ()


###See Also Object
Map
Home

Clone this wiki locally