Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - McTroopers

#1
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
}
#2
Hi everybody
I have a problem with scrolling screens.. I want the player to stay near the bottom of the screen, but I'm not able to...I used the setviewport function in the repeatedly_execute section of the room screen,

setviewport(player.x-160,player.y-180);

this way the character is where I want, but it flickers a lot everytime he moves...Do you know a best way in order to prevent the character from flickering?
Thank you
SMF spam blocked by CleanTalk