hi, i am currently developing rpg-like game using libgdx.
i having problem in rendering moving object (sprite) when there are tall objects
i can handle it when the object is behind the tall object using layer order rendering (draw the sprites layer, then the tall object layer).
but, obviously if the sprite "must be rendered after" the tall object, it will produce something like this:
my current map layers:
- collision (tile layer)
- stage (object layer)
- floor (tile layer)
"stage" object layer is where i put the sprites
"collision" tile layer is where i put the tall objects
after some searching, i know that i must sort it by their "depth". but i have no idea how do it with tiled which i know rendering the map per-layer.
my current idea is creating two sprite layer ("below object" and "above object") and then add-remove the sprites between that layers according their render order.
have other suggestion?