04-01-2007, 04:58 AM
its simple actually. Create a new surface, copy and paste the sprite surface make it DD_NPCSurf or something then go to bltnpcand change it to DD_NPCSurf.
Public DD_NPCSurf As DirectDrawSurface7
Public DDSD_NPC As DDSURFACEDESC2
Then got to bltnpc and find whatever you can find of dd_spritesurf and change it to dd_npcsurf. simple.
Public DD_NPCSurf As DirectDrawSurface7
Public DDSD_NPC As DDSURFACEDESC2
Code:
' Init npc sprite ddsd type and load the bitmap
DDSD_NPC.lFlags = DDSD_CAPS
DDSD_NPC.ddsCaps.lCaps = DDSCAPS_OFFSCREENPLAIN Or DDSCAPS_SYSTEMMEMORY
Set DD_NPCSurf = DD.CreateSurfaceFromFile(App.Path & "\npcs.bmp", DDSD_Sprite)
DD_NPCSurf.SetColorKey DDCKEY_SRCBLT, key
Then got to bltnpc and find whatever you can find of dd_spritesurf and change it to dd_npcsurf. simple.