Force an image to render on top of another *regardless* of code excution order.

I have this awkward problem I’ve been trying to solve, and I can’t figure out how.

Basically I use LinebyLine rendering on my tiled map, in a nutshell, this allows the player/entities to be rendered either in front or behind an object depending on his Y location. The problem here is I have to also render my blood on the ground behind the player at all times no matter what, but the blood has to be rendered on top of the map at all times no matter what. (Thus rendering over the player as well) What I need is a way to always render the blood on top of the entire map as a whole, yet not on top of the player, who code-wise is rendered in the middle of rendering the maps depending on his Y location (that are under the blood rendering execution).

So basically, the rendering order goes like this:

Objects under the player -> Entity/Player -> Objects over the player -> blood.
But blood needs to be both under “Entity/Player” and over “Objects over the player” at the same time.

I can’t just put the blood behind the player, because then it wont render on anything “over the player”. Basically, the blood must render after the player and the entire map does but the player itself needs to be rendering over the blood. Is there any trick to make an image render on top of another specific image regardless of the order the render methods are called?

I tried googling for a solution, but all I keep finding is ultra-beginner stuff like “rendering 2 overlapping images” by the obvious method, draw one, then draw the other one line down. So I’m kinda stumped. I feel like there’s a simple way to do this I’m not fully grasping. :stuck_out_tongue: