[A83] Re: Scrolling and stuff


[Prev][Next][Index][Thread]

[A83] Re: Scrolling and stuff




At 06:33 PM 5/1/01 -0700, you wrote:

>I have a question about scrolling...
>When you scroll the background and you also have a character on the 
>screen, would you erase the character, scroll the screen, then redraw the 
>character?  That seems like the most logical way, but I just wanted to 
>know if there was a different way.

in my opinion, the best way...

  clear graph buffer
  draw Background
  draw character

why?
- it is unnecessary to erase the character.
why redraw the background each frame?
  - consistency.  every time the map is "aligned" (every 8th time), the map 
has to be redrawn.  If it is only redrawn every 8 steps, then the animation 
is going to slow down considerably at that point.

-harper




References: