www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/25/17:16:45

From: mejorm AT aol DOT com (Mejorm)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Using sprites with allegro
Date: 25 Feb 1998 22:04:06 GMT
Lines: 11
Message-ID: <19980225220401.RAA28287@ladder03.news.aol.com>
NNTP-Posting-Host: ladder03.news.aol.com
Organization: AOL http://www.aol.com
References: <34EADDFF DOT 2718 AT teamw DOT com>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

If I am not mistaken, the Allegro Blit command copies one section to another,
overwriting whatever is there.
Instead, use the draw_sprite() function.  You do noot have to store the sprite
image as a RLE image, you can use the Allegro grabber and store it as a bitmap.
Remember to "fill in" the areas around your sprite with the color black, with a
paint program.  Although you CAN change which color the draw_sprite() function
does not draw, by default the function will not draw anything in black.  (Thus,
not erasing the background).
Hope that helps, 
Paul Turnberg

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019