24-04-2008, 03:51 AM
Use BltToDC and blt them in the All characters packet.
But before that define your rec and rec_pos. Your rec would be the source of your image. Something like this.
Thats for 32x64 sprites but you can fix it up easily enough. Then with rec_pos (this is what you wanted to know in the first place I think) it would be a matter of telling it were to blt to. With rec_pos you can tell it to blt whatever character number to whichever coordinates you want.
Code:
DD_SpriteSurf.BltToDC frmChars.hdc, rec, rec_pos
But before that define your rec and rec_pos. Your rec would be the source of your image. Something like this.
Code:
With rec
.Top = Str$(Sprite) * 64
.Bottom = .Top + 64
.Left = 4 * 32
.Right = .Left + 32
End With
Thats for 32x64 sprites but you can fix it up easily enough. Then with rec_pos (this is what you wanted to know in the first place I think) it would be a matter of telling it were to blt to. With rec_pos you can tell it to blt whatever character number to whichever coordinates you want.