Things like that keep happening a lot from the player or mobs doing nothing more than move around. I've tried SIDE_MAP, and numerous other similar soft coding methods. Googled a lot as well. The world icon size is 32x32, the mob icon file is 48x48, and the mob from that picture is nearly centered at pixels 10 to 43 height wise. As for bounds...
step_size = 8
bound_x = 16
bound_y = 8
bound_width = 16
bound_height = 16
I know there has GOT to be a way to fix this, but I just can't seem to wrap my head around it. So someone please enlighten me.
What you want is for objects closer to the camera to be layered above objects further away, right? Well, to quantify the closeness of an object to the camera, one way is to use the object's absolute pixel y coordinate:
Next, we want it so that lower py -> closer to the camera (when visible, anyway) -> higher layer.