Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question about sprites
#2
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

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


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)