I think there is something wrong with gamemaker 8's z buffer. Things at the same distance from the camera will overlap in weird ways. Not sure how to fix it, that code is ancient :p