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

Add ability to draw seperate layers #53

Open atomicptr opened 10 years ago

atomicptr commented 10 years ago

e.g. only draw layer 2, 3 and 6 or only layers with specific names

related to #52

johnhattan commented 10 years ago

Making a layer's "visible" member in layer.hx write-able would let you turn off layers before re-rendering them.

public var visible(default, default):Bool;

Mind you, that's a pretty limited solution, but at least it's an easy one to implement :)

atomicptr commented 10 years ago

At the moment they're only rendered once so there is no point in making this writable again. I might want to add the ability to draw layers seperate from the map, but dunno.