Posted 17 January 2000 - 07:45 AM
I''m new to DX, and trying to o some sprites, heres the code that i''m having trouble to get to work, Also everything compiles ok and my color keys work.
// this is my background picture the size of the screen
// set the array to element 1 which is my character surface
current_image = 1;
// set source rct to the size of my picture, my characters
// picture is 400x400
rect.left = 0;
rect.top = 0;
rect.bottom = 400;
rect.right = 400;
// blt the character to 200,200
Ok here''s whats wierd, if i set the first 2 parameters to 0,0 on my second blit and the source rect to null it works fine. But my sprite is at 0,0. I can''t get it to work setting any other coordinates. Help please. Thanks in ad.