Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Character Preview
#5
Use BltToDC and blt them in the All characters packet.

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.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)