function scr_depth_alt() { depth = 100000 - ((y * 10) + ((sprite_height - sprite_yoffset) * 10)); }