How do I fix this?
It works perfectly when the player goes behind the house but whenever I go too far above the house the player becomes invisible for some reason
Are you changing the Z order of the player at any point, either by events or by using the Y-Sort extension behaviour?