Had this issue too. What is happening is your character is clipping out of bounds. So, when the screen goes black you are outside of the map.