04-01-2007, 04:43 AM
This is newbish but can someone point me in the right direction; I want it so npc's and players have different sprite sheets.
Question about sprites
|
04-01-2007, 04:43 AM
This is newbish but can someone point me in the right direction; I want it so npc's and players have different sprite sheets.
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 Code: ' Init npc sprite ddsd type and load the bitmap Then got to bltnpc and find whatever you can find of dd_spritesurf and change it to dd_npcsurf. simple.
04-01-2007, 05:04 AM
Yeah if you need help IM me
04-01-2007, 05:21 AM
Why would he need help if I were to just give him the code on a platter? Simple enough and if you don't understand....
04-01-2007, 05:56 AM
Nothing wrong with being nice. It goes a long way.
04-01-2007, 05:57 AM
He's right, and besides pando... there's an error in the code you posted. Can you spot it?
![]() (it never hurts to be helpful)
04-01-2007, 06:13 AM
"\npcs.bmp", DDSD_Sprite) I left this error for him just to get better. This is how some people taught me. Its a nice way to learn.
04-01-2007, 06:26 AM
lol yeah i got it working. And yeah i noticed that error while adding it. Thanks for the help guys
04-01-2007, 07:21 AM
You can also do this with paperdoll. Just make a new surface called equipmentsurf and change the itemsurf in bltplayer to equipment surf.
|
« Next Oldest | Next Newest »
|