![]() |
Question about sprites - Printable Version +- Mirage Source (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17) +---- Thread: Question about sprites (/showthread.php?tid=578) |
Question about sprites - Forte - 04-01-2007 This is newbish but can someone point me in the right direction; I want it so npc's and players have different sprite sheets. - Tony - 04-01-2007 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. - halla - 04-01-2007 Yeah if you need help IM me - Tony - 04-01-2007 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.... - halla - 04-01-2007 Nothing wrong with being nice. It goes a long way. - Obsidian - 04-01-2007 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) - Tony - 04-01-2007 "\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. - Forte - 04-01-2007 lol yeah i got it working. And yeah i noticed that error while adding it. Thanks for the help guys - Tony - 04-01-2007 You can also do this with paperdoll. Just make a new surface called equipmentsurf and change the itemsurf in bltplayer to equipment surf. |