sorry for double posting BUT i forgot to add function to delete media.... SORRY
void deletemedia( int mediamaxID ) // delete media from memory
{
int counter;
for ( int counter = 0; counter <= mediamaxID; counter ++ )
{
if ( dbSpriteExist( counter ) ) dbDeleteSprite( counter );
if ( dbBitmapExist( counter ) ) dbDeleteBitmap( counter );
if ( dbImageExist( counter ) ) dbDeleteImage( counter );
if ( dbMusicExist( counter ) ) dbDeleteMusic( counter );
}
}
use this function to delete media i'll leave you to figure it all out..............
Regards :- Steve
AMD Athlon64x2 3.1Ghz - Ram 4Gb DDR2 800Mhz - 500Gb HD
Ndivia 9600GT SLI - 24in LCD - WIN 7 - 64 bit BETA