From: visage AT yourmom DOT com (Visage) Newsgroups: comp.os.msdos.djgpp Subject: Re: Coding problems from an extreme C newbie... Date: Mon, 16 Nov 1998 15:52:22 GMT Organization: Your Mom.Com Lines: 35 Message-ID: <36504861.201569@news.flash.net> References: <199811152033 DOT UAA07034 AT remus DOT clara DOT net> NNTP-Posting-Host: ip69.toledo.oh.pub-ip.psi.net X-Newsreader: Forte Free Agent 1.11/32.235 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Sun, 15 Nov 1998 20:32:50 -0000, "Arthur" wrote: >if((x1 == 0) && (y1 == 0)) /* Red sprite at (0,0) - do stuff */ >if((x2 == 20)&& (y2 == 20))/* Blue sprite at (20,20) - do stuff */ I got to thinking about this, and now I have another question: What if I have TWO or more sprites at the same location...i.e. the sprites changes.. Actually, maybe I should tell you about the code I want to write, so here goes... (deep breath) It's a puzzle game with a 9x9 sprite grid (sprite size unimportant) This grid is filled with colors of "orbs" or colored sprites. If the player clicks on a blue sprite, it changes to a red sprite (and the "orbs" horizontally and vertically change as well). The player completes a level when all sprites have changed to a specific color. So I guess my first question (of many more to come) is how do I get the program to check when a level is all one color? (Also, there are "empty orbs" in each level which do not change at all.) Next quick question: What if I have different bitmaps for the animations of sprites? How do I incorporate them into my program? Like if the player clicks on an orb, it will "flip" over (play an animation). And the last question: What's the best way to have a bitmap fade in? It's easy to get it to fade to black with an Allegro function, but I tried several things for fading in, and nothing worked. Help! That's all for now. - Steve (who's still a coding newbie.)