I've never gotten the GDK to work with debugging.
But, as far as usage goes: I'm running a loop to check for the existence of files. The plan was to make loading the image files simple. It checks for "1.bmp"'s existence. If it exist, it then loads the image under ID 1, and moves on to "2.bmp". When it finds that one of the images doesn't exist, it stops looking. I have 1.bmp, 2.bmp, and 3.bmp in the directory. Here is the code to the loop:
void load_sprite_resources ( )
{
// Set color key for sprites to bright pink
dbSetImageColorKey ( 255, 0, 255 );
for ( int i = 1; dbFileExist ( fileNameNum ( i ) ); i++ )
dbLoadImage ( fileNameNum ( i ), 1 );
}
I thought it was its usage in a loop. So, I replaced the above with this:
dbLoadImage ( fileNameNum ( 1 ), 1 );
It still gave the error. I really don't know what the problem is. Should I just give up using this method and load them manually? I was hoping to make it dynamic in hopes of it being more usable by others helping with the project.