Problem with Sprites Showing when i uncomment these lines of code which just copies some bitmaps
//dbCreateBitmap(20,800,600);
//dbCreateBitmap(21,800,600);
//dbCopyBitmap(0,21);dbSync();
//dbLoadBitmap("Graphics/Credits.jpg",20);
//dbCopyBitmap(20,0);dbSync();
[/code}
In the Following Code function
void credits(void){
//freememory();dbSync();
dbSetCurrentBitmap(0);
//dbCreateBitmap(20,800,600);
//dbCreateBitmap(21,800,600);
//dbCopyBitmap(0,21);dbSync();
//dbLoadBitmap("Graphics/Credits.jpg",20);
//dbCopyBitmap(20,0);dbSync();
dbLoadImage("graphics/Logos.jpg",22,1);
dbLoadImage("graphics/Logos.jpg",23,1);
dbSprite(22,0,178,22);dbShowSprite(22);
dbSprite(23,799,178,23);dbShowSprite(23);
dbSetSpritePriority(22,0);
dbSetSpritePriority(23,0);
dbDrawSpritesLast();
dbWait(100);
while (dbMouseClick()!=1){
for (int t=799;t>0;t--){
dbSprite(22,t,178,22);
dbSprite(23,t-799,178,23);
if (dbMouseClick()==1){break;}
dbSync();
}
}
dbCopyBitmap(21,0);dbDeleteBitmap(20);dbSync();
dbHideSprite(20);dbHideSprite(21);dbDeleteBitmap(21);
dbDeleteBitmap(22);dbDeleteBitmap(23);
dbDeleteSprite(22);dbDeleteSprite(23);
blob_effect_setup();blob_effect_show();dbSync();
dbWait(100);
}
fubar