I've spent quite a bit of time trying to figure this out. I was really surprised that it didn't work like in the demo. I think it must be because my game is a shooter with different depth sprites, transparencies, and moving background. So I'm using a 4 color 8-bit image for the H file. It has no transparency, and I've turned that off in the code. It shows up above everything else on the screen as a "transparent" square. My flying ship goes under the square and is hidden by it. The enemy ships do the same. The square shows the background inside of itself, rather than the image it's supposed to be showing. I've tried playing with the depth of the image, but that doesn't do anything. I'm wondering if this has to do with the
parts of the code. I'm thinking that the image is getting sorted incorrectly. Any ideas?