Message-Id: <199812210010.AAA09338@remus> From: "Arthur" To: Subject: RE: Allegro drawsprite question Date: Mon, 21 Dec 1998 00:09:35 -0000 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 Importance: Normal In-Reply-To: <01be2c38$92583e80$546f8ea1@a> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Reply-To: djgpp AT delorie DOT com > I make a program to see how draw sprite work. When I set the background to > green color, draw sprite works fine. But when I set the > background to black > color, draw sprite does not do anything. Can someone tell me how to > overcome this problem ? If you set any part on a sprite to colour index 0 (usually, but not always, black) then that area will not be drawn. You use colour 0 for areas of the sprite that you don't want drawn - you use the other colours to draw the part of the sprite that you want to see. If you want part of a sprite to be black, change your palette so that another colour (not colour 0) is black, and draw with that. James Arthur - jaa AT arfa DOT clara DOT net http://www.jado.org/users/arfa/ ICQ#15054819