makotok/Hanappe

Regarding closed issue #12 - Drawing order in TMXMapView.

Closed this issue · 2 comments

There still seems to be issues with the drawing order in TMXMapView.

I haven't looked too closely into it but by a quick glance the problem seems to be with the TMXMapLoader. It looks as if the tile-layers are loaded first, then the object-layers, and this causes the object-layers to always being stacked on top of the tile-layers. So when this table is passed to the new TMXMapView->createDisplayMapLayers() function, the object layers will always be rendered last.

I'm sorry I haven't had time to test this earlier, but I've been busy with other projects.

Thanks for the report. I confirmed the event.
Due to MOAIXmlParser.
MOAIXmlParser does not preserve the order.
Currently, if you use XML you will not work.
They will need to implement to parse the file that you exported in Lua.

The constraints to display it in the forefront Object is HanappeFramework.

FlowerLibrary loads the file that you exported in Lua.
As a result, here are the events can be avoided.

There is no way to fix.
I will close once.