Allegro help! EASY LOADING OF BMP class [Archive] - C Board

PDA

View Full Version : Allegro help! EASY LOADING OF BMP class


Blizzarddog
11-20-2003, 10:16 AM
I hate graphics programming. Even though Allegro was the hardest to set up for Dev C++, the commands are easy. BUT THEY ARE STILL ANNOYING THE LIVING HECK OUTTA ME!

I want to make a class that works like this:

Picture pic("file.bmp");
pic.set_tran(000, 000, 000);
pic.draw_to_screen(x, y);
pic.set_motion(x, y); //objects heading, for like a bullet
pic.clear();
pic.draw(x,y);

I've gotten the picture to load, and display, but when it moves, it just erases itself, whecther i clear the screen or not.

Can some one help me with this?

Thank you.

frenchfry164
11-21-2003, 03:39 PM
What do you mean it "moves" pictures don't just move :rolleyes: j/k

Check your gameloop and make sure you aren't doing anything that draws over the picture. Unless I can see some code I can't really help you.

Blizzarddog
11-25-2003, 09:06 AM
I got a class form a fellow programmer from my company. Not exactly what i was looking for.

I mena moves as in, the X and Y coordinates are changed, in a way that the picture slides smoothly across the screen.

frenchfry164
11-25-2003, 07:50 PM
I knew what you meant, I was just being a wiseass, lol

some code, plz? I can't help you without code.