Mail Archives: djgpp/1998/01/23/19:01:01
In <19980123161800 DOT LAA01145 AT ladder01 DOT news DOT aol DOT com> pitel AT aol DOT com
(Pitel) writes:
>
>Hello
>
>Can someone help me, i am trying to display
>a sprite animation on a screen that i have place
>a background bitmap image, but as i move the sprite
>the sprite destroyes the background (erases it).
>
>how can i save the background image and restore it
>when the sprite has moved off that area.
>
>Thanks
>
>Pitel AT aol DOT com
>Eric
Use a Z-buffer algorithm as it alows you to consider depth and will
write pixels that are nearest to you--not in the background. The
Z-buffer contains the image at a specific frame corresponding to the
displayed images z coord during that frame (search the web for a more
robust description). Hope that helps.
- Raw text -