Hi, I am working with a tile-based engine now. My engine consists of 3 layers: a ground layer(grasses, road, etc), an object layer(columns, house, etc), and a topmost layer(cloud, etc). Also, each tile is 32x32 in pixels.
This is my first approach in rendering: ground layer => object layer => all sprites => topmost layer. However, it comes up with some sprites standing "on the top of a tree" rather than standing "behind a tree" in this case.
Then I've tried the second approach: divding the object layers to 2 layers, and rendering sequence is now: ground layer => lower object layer => sprites => upper object layer => topmost layer. I was satisfactory with the result until I have decided to use taller sprites (32x96px) instead of the original one(32x64px). Now the head of my sprites is "cut off" by the upper part of trees
So, should I divide the object layers into further more layers? Or you genius here have other better solution?