Message-ID: <37E4294A.8F44A4FC@gtcom.net> From: Krogg X-Mailer: Mozilla 4.61 [en] (Win95; U) X-Accept-Language: en-US,en-GB,en,ja MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: GETTING A SPRITE TO MOVE AROUND WITHOUT KILLING THE BACKGROUND References: <7s0men$cvo$1 AT nnrp1 DOT deja DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 48 Date: Sat, 18 Sep 1999 20:07:38 -0400 NNTP-Posting-Host: 12.6.67.15 X-Trace: eagle.america.net 937699900 12.6.67.15 (Sat, 18 Sep 1999 20:11:40 EDT) NNTP-Posting-Date: Sat, 18 Sep 1999 20:11:40 EDT Organization: 24hoursupport.com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com rpgmaletteallegro AT my-deja DOT com wrote: > > I need help in getting a program to work. What I want to do is make a > program that makes a background, puts a sprite on the background and > then allows the user to move the sprite around while not destroying the > background. Any links or advice is greatly appreciated. > > rpg_anime AT hotmail DOT com thanks!!! > > Sent via Deja.com http://www.deja.com/ > Share what you know. Learn what you don't. Well there are a few ways to do this... you could: make a screen buffer. store the background in the screen buffer. blit the buffer to the screen. blit sprite to screen. this might have flickering in it though. a better way would be to: make 2 buffers. store the background on the first buffer. blit the first buffer to the second buffer. blit the sprite to the second buffer. blit the second buffer to the screen. This doesnt have flicker(assuming that your blit to screen waits for retrace) but uses more memory. allegro might help you in such a task. http://www.talula.demon.co.uk/allegro/ -- |"""""<`.THE PRINCE ,'>"""""""""""""""""""""""""""""""""""| | `.`/""""""\,',' my sig is too big, | |SEE HIS ( / \ \' SEE HIS but its really cool. | | FACE \/<> <>\/ SMILE | | / W \ Visit my ascii art site: | | ,'\_|||||_/`. http://www.gtcom.net/~krogg/ascii/ | | ,',' ||| `.`. krogg DOT no DOT to DOT spam AT gtcom DOT net | |____<,' TIME TO DIE `.>____Remove no.to.spam to reply____|