By the way Steve why are you initializing
int count twice? It already initialises in for() loop
So it may look like:
void FadeImage(int imageid,int alphaFrom, int alphaTo)//adds more flexibility
{
for(int i=alphaFrom; i>alphaTo; i--)
{
int imgAlpha=i;
dbSetSpriteAlpha(imageid,imgAlpha);
dbSync();
}
}
And for you to know
ketchup mustard dbSync(); acts as a screen refresher, something like dbCLS();
Edit: ohh I wrote different thing that you want xD
you may try:
dbCLS(dbRGB(0,0,0),dbRGB(0,0,0));//this will make your screen black
//the you just load animation you want and play it.
Theory-When you know everything,but nothing works.
Practice-When everything works,but you don't know why.
Programming merges these two-Nothing works,and you don't know why.