Okay, I'll try this again. with screenshots this time,
So load_bitmap in allegro 4 wont work and every time I try and load an image it crashes, I have my bitmap images in the same folder next to my code block files and I'm trying to load the 8-bit Mario, I provided an image of my folder as well as the code::blocks IDE in the Attachment.
I don't know why its not loading or what it means for it to be corrupted.
The code used:
set_color_depth(desktop_color_depth()); // 8, 15, 16, 32
set_gfx_mode(GFX_AUTODETECT_WINDOWED, 640, 480, 0, 0);
BITMAP *bmp = create_bitmap(640, 480);
BITMAP *character = load_bitmap("mario32.bmp", NULL);
int x = 0;
int y = 0;
draw_sprite(bmp, character, x, y);
blit(bmp, screen, 0, 0, 0, 0, bmp->w, bmp->h);
clear_to_color(bmp, makeacol(255, 255, 255, 255));
I don't get what's wrong with it I get 0 errors and 0 Warnings in code.
When I seem to load mario 8 its fine, I don't know if its the color or anything, whereas if mario 32 was loaded (which has no difference what so ever its just an 8-bit mario with no change in color scheme what so ever) it fails and I get "Allegro Game has stopped working", and the console returns a negative value, and other stuff...
I just don't know what to do now, I've provided images and stuff to help and make it easier. The main problem is when ever I load the image, it NEVER shows up.. well, only if its mario8.bmp which is just a purple square which Lenny gave me instead, because he said to try it.
QUESTION: How would you create your own bitmap images for allegro
Thanks again coderthatcancode
EDIT: It worked it turns out you need to edit the mario32.bmp in a paint program and then save it as an 24-bit bitmap, unblock the file as it may be blocked in properties