From: Barry Rodewald Newsgroups: comp.os.msdos.djgpp Subject: Re: Scrolling+sprites Date: Sat, 22 Nov 1997 22:52:47 +1300 Lines: 18 Message-ID: <3476AB6E.C903F505@hn.pl.net> References: <3472EE16 DOT 41C6 AT cc DOT hut DOT fi> NNTP-Posting-Host: bsr.hn.planet.gen.nz Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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.