The problem might just be there Nicotin... I´ve noticed that the shift_map() function is place within the main() function, so it´s called always, no matter where is the character... and the "if ... > 800" condition is already inside the function.....
actually it´s more like this
shift_map()
{
while(1)
if (character_pan.pos_x > 800)
{
character_pan.pos_x = 0;
create_map(map_code);
wait(1);
}
}
Perhaps I could put this check inside the character movement function? Or any suggestions?
thanks so far!