Allegro help! EASY LOADING OF BMP class

This is a discussion on Allegro help! EASY LOADING OF BMP class within the Game Programming forums, part of the General Programming Boards category; I hate graphics programming. Even though Allegro was the hardest to set up for Dev C++, the commands are easy. ...

  1. #1
    Linux Forever
    Join Date
    Oct 2002
    Posts
    373

    Allegro help! EASY LOADING OF BMP class

    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.
    This war, like the next war, is a war to end war.

  2. #2
    Banned frenchfry164's Avatar
    Join Date
    Oct 2001
    Posts
    1,552
    What do you mean it "moves" pictures don't just move 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.

  3. #3
    Linux Forever
    Join Date
    Oct 2002
    Posts
    373
    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.
    This war, like the next war, is a war to end war.

  4. #4
    Banned frenchfry164's Avatar
    Join Date
    Oct 2001
    Posts
    1,552
    I knew what you meant, I was just being a wiseass, lol

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

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Inherite nonvirtual class functionality
    By DrSnuggles in forum C++ Programming
    Replies: 2
    Last Post: 04-30-2009, 01:52 PM
  2. Message class ** Need help befor 12am tonight**
    By TransformedBG in forum C++ Programming
    Replies: 1
    Last Post: 11-29-2006, 10:03 PM
  3. Replies: 8
    Last Post: 10-02-2005, 12:27 AM
  4. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  5. multiple pictures from a bmp in allegro
    By Blizzarddog in forum Game Programming
    Replies: 6
    Last Post: 09-11-2003, 07:43 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21