openfl-tiled icon indicating copy to clipboard operation
openfl-tiled copied to clipboard

Add ability to draw seperate layers

Open atomicptr opened this issue 11 years ago • 2 comments

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

related to #52

atomicptr avatar Feb 18 '14 11:02 atomicptr

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 :)

johnhattan avatar Feb 18 '14 18:02 johnhattan

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.

atomicptr avatar Feb 18 '14 18:02 atomicptr