Thanks a lot...I turned the anti-glide off and everything was ok...
But at the end I've found an alternative way without having to change the anti-glide setting, it counts the number of frames after every frame change, in order to scroll in the same cycle when the new frame is drawn...I post it in the case somebody can find it useful
int counter=0;
int oldframe=0;
//In the repeatedly_execute function
{
if (oldframe!=player.frame) counter=0;
counter++;
if (counter==X/*the number of cycles necessary to change the displayed frame*/)
setviewport(player.x-160,player.y-180);
oldframe=player.frame
}
But at the end I've found an alternative way without having to change the anti-glide setting, it counts the number of frames after every frame change, in order to scroll in the same cycle when the new frame is drawn...I post it in the case somebody can find it useful
int counter=0;
int oldframe=0;
//In the repeatedly_execute function
{
if (oldframe!=player.frame) counter=0;
counter++;
if (counter==X/*the number of cycles necessary to change the displayed frame*/)
setviewport(player.x-160,player.y-180);
oldframe=player.frame
}