So you call a function as soon as the character is over 800? like
if(character.x > 800)
{
shift_map();
}
?