PDA

View Full Version : DelphiX background manipulation



atozix
16-10-2003, 07:36 PM
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

Avatar
17-10-2003, 04:21 AM
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

atozix
17-10-2003, 06:58 AM
Hi Avatar,,,

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

works well...

cheeeeeeerrrrrrrrssssssssss a