Mirage Source
http://www.miragesource.net/forums/

Question about sprites
http://www.miragesource.net/forums/viewtopic.php?f=201&t=1049
Page 1 of 55

Author:  Forte [ Thu Jan 04, 2007 4:43 am ]
Post subject:  Question about sprites

This is newbish but can someone point me in the right direction; I want it so npc's and players have different sprite sheets.

Author:  Tony [ Thu Jan 04, 2007 4:58 am ]
Post subject: 

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.

Author:  halla [ Thu Jan 04, 2007 5:04 am ]
Post subject: 

Yeah if you need help IM me

Author:  Tony [ Thu Jan 04, 2007 5:21 am ]
Post subject: 

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

Author:  halla [ Thu Jan 04, 2007 5:56 am ]
Post subject: 

Nothing wrong with being nice. It goes a long way.

Author:  Obsidian [ Thu Jan 04, 2007 5:57 am ]
Post subject: 

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)

Author:  Tony [ Thu Jan 04, 2007 6:13 am ]
Post subject: 

"\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.

Author:  Forte [ Thu Jan 04, 2007 6:26 am ]
Post subject: 

lol yeah i got it working. And yeah i noticed that error while adding it. Thanks for the help guys

Author:  Tony [ Thu Jan 04, 2007 7:21 am ]
Post subject: 

You can also do this with paperdoll. Just make a new surface called equipmentsurf and change the itemsurf in bltplayer to equipment surf.

Author:  wanai [ Mon Jan 24, 2022 7:04 pm ]
Post subject:  Re: Question about sprites

XVII

Author:  wanai [ Mon Jan 24, 2022 7:05 pm ]
Post subject:  Re: Question about sprites

168.7

Author:  wanai [ Mon Jan 24, 2022 7:06 pm ]
Post subject:  Re: Question about sprites

Bett

Author:  wanai [ Mon Jan 24, 2022 7:07 pm ]
Post subject:  Re: Question about sprites

Bett

Author:  wanai [ Mon Jan 24, 2022 7:08 pm ]
Post subject:  Re: Question about sprites

Terr

Author:  wanai [ Mon Jan 24, 2022 7:10 pm ]
Post subject:  Re: Question about sprites

Conn

Author:  wanai [ Mon Jan 24, 2022 7:11 pm ]
Post subject:  Re: Question about sprites

Jewe

Author:  wanai [ Mon Jan 24, 2022 7:12 pm ]
Post subject:  Re: Question about sprites

Chap

Author:  wanai [ Mon Jan 24, 2022 7:13 pm ]
Post subject:  Re: Question about sprites

Newc

Author:  wanai [ Mon Jan 24, 2022 7:14 pm ]
Post subject:  Re: Question about sprites

Rumi

Author:  wanai [ Mon Jan 24, 2022 7:15 pm ]
Post subject:  Re: Question about sprites

Side

Author:  wanai [ Mon Jan 24, 2022 7:17 pm ]
Post subject:  Re: Question about sprites

Raye

Author:  wanai [ Mon Jan 24, 2022 7:18 pm ]
Post subject:  Re: Question about sprites

Inte

Author:  wanai [ Mon Jan 24, 2022 7:19 pm ]
Post subject:  Re: Question about sprites

Volt

Author:  wanai [ Mon Jan 24, 2022 7:20 pm ]
Post subject:  Re: Question about sprites

Mick

Author:  wanai [ Mon Jan 24, 2022 7:21 pm ]
Post subject:  Re: Question about sprites

Accu

Page 1 of 55 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/