BTW look at this...
VB Code:
Dim rTemp as Rect rTemp.Left = SpriteX rTemp.Top = SpriteY rTemp.Right = rTemp.Left + ddsdSprite.lWidth rTemp.Bottom = rTemp.Top + ddsdSprite.lHeight ddBackBuffer.BltFast SpriteX, SpriteY, ddBackground, rTemp, DDBLTFAST_WAIT
This is a DX example...(I'm always using DX, so thats why my code is in DX......It makes a rect called rTemp. The code sets the left,RIght,Top,and bottom properties that the sprite had. Then in the last line it Blt the background to the "screen", but it is only Blting the part of the background that rTemp is telling it to....you will have to write the last line here in your code using the form of blitting you are using....I don't know how you have written your code, so I can't tell you more specific...




...It makes a rect called rTemp. The code sets the left,RIght,Top,and bottom properties that the sprite had. Then in the last line it Blt the background to the "screen", but it is only Blting the part of the background that rTemp is telling it to....you will have to write the last line here in your code using the form of blitting you are using....I don't know how you have written your code, so I can't tell you more specific...
Reply With Quote