Results 1 to 3 of 3

Thread: DelphiX background manipulation

  1. #1

    DelphiX background manipulation

    Hi Agin,,

    To stop animated sprites from leaving a trail, one needs a background ..

    Using DelphiX with delphi5.... Is there a way to stop the trail without loading a background... If the sprite is not animated, no trail is left...

    And secondly ,, how can I simply create and load a background and fill it with any color I like, without using a picture or using the DXImage list...

    And, if for instance i do load a background from the DXImage list... How can I stretch a very small pic to fill a 1024 X 768 background...

    And lastly,, how can I draw or overlay or add images to an existing background so that they are permanent

    Any and all help appreciated.....

    oh and btw is there a special format for ones avatar,,, i keep trying to add a gif (within the size and k specs)_ from my url and it does not take

    Cheeeeerrrrrrsssss atozix
    The Universe is all right here!!!

  2. #2

    DelphiX background manipulation

    Hi !

    I don't really remember how to apply an image to the background(just look for backgroundsprite).

    But if you see trails behind your sprites, it's that you don't clear the buffer. Just use dxDraw1.Surface.Fill(0);

    Where 0 is the color(a longword color)

    Hope that helps

    Bye
    Avatar

  3. #3

    DelphiX background manipulation

    Hi Avatar,,,

    Thx,, that certainly answered the basic background question...

    works well...

    cheeeeeeerrrrrrrrssssssssss a
    The Universe is all right here!!!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •