Mail Archives: djgpp/1997/11/23/16:31:23
Ville Lundberg wrote:
> In my game, the playground have to scroll while ca 15 sprites moves
> around it. But when I do this, by mixing double buffering and Allegros
> scroll_screen, the sprites flicker; they create "ghost" images, when
> running across the scrolling screen. It'looks terrible.
I assume you have a virtual screen setup (using set_gfx_mode()) for the play
area?
Try blitting the background first to a buffer (memory bitmap) then use
draw_sprite() to copy the sprites to the buffer. Then blit the buffer to
the screen then call scroll_screen to position the viewable part of the
screen.
Hope that this clears it up a bit,
Barry Rodewald.
- Raw text -