Mail Archives: djgpp/1998/11/16/11:00:14
On Sun, 15 Nov 1998 20:32:50 -0000, "Arthur" <arfa AT clara DOT net> 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.)
- Raw text -