Mirage Source

Free ORPG making software.
It is currently Thu Mar 28, 2024 1:47 pm

All times are UTC




Post new topic Reply to topic  [ 1366 posts ]  Go to page 1, 2, 3, 4, 5 ... 55  Next
Author Message
 Post subject: Question about sprites
PostPosted: Thu Jan 04, 2007 4:43 am 
Offline
Knowledgeable
User avatar

Joined: Sun Dec 03, 2006 6:18 am
Posts: 228
Location: NJ, United States
This is newbish but can someone point me in the right direction; I want it so npc's and players have different sprite sheets.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 04, 2007 4:58 am 
Offline
Persistant Poster
User avatar

Joined: Wed Nov 29, 2006 11:25 pm
Posts: 860
Location: Ayer
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.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 04, 2007 5:04 am 
Offline
Pro

Joined: Sat Jun 03, 2006 8:32 pm
Posts: 415
Yeah if you need help IM me


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 04, 2007 5:21 am 
Offline
Persistant Poster
User avatar

Joined: Wed Nov 29, 2006 11:25 pm
Posts: 860
Location: Ayer
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....


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 04, 2007 5:56 am 
Offline
Pro

Joined: Sat Jun 03, 2006 8:32 pm
Posts: 415
Nothing wrong with being nice. It goes a long way.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 04, 2007 5:57 am 
Offline
Pro

Joined: Mon May 29, 2006 2:15 am
Posts: 368
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)

_________________
Image
Image
The quality of a man is not measured by how well he treats the knowledgeable and competent, but rather how he treats those less fortunate than himself.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 04, 2007 6:13 am 
Offline
Persistant Poster
User avatar

Joined: Wed Nov 29, 2006 11:25 pm
Posts: 860
Location: Ayer
"\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.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 04, 2007 6:26 am 
Offline
Knowledgeable
User avatar

Joined: Sun Dec 03, 2006 6:18 am
Posts: 228
Location: NJ, United States
lol yeah i got it working. And yeah i noticed that error while adding it. Thanks for the help guys


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 04, 2007 7:21 am 
Offline
Persistant Poster
User avatar

Joined: Wed Nov 29, 2006 11:25 pm
Posts: 860
Location: Ayer
You can also do this with paperdoll. Just make a new surface called equipmentsurf and change the itemsurf in bltplayer to equipment surf.


Top
 Profile  
 
PostPosted: Mon Jan 24, 2022 7:04 pm 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
XVII


Top
 Profile  
 
PostPosted: Mon Jan 24, 2022 7:05 pm 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
168.7


Top
 Profile  
 
PostPosted: Mon Jan 24, 2022 7:06 pm 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
Bett


Top
 Profile  
 
PostPosted: Mon Jan 24, 2022 7:07 pm 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
Bett


Top
 Profile  
 
PostPosted: Mon Jan 24, 2022 7:08 pm 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
Terr


Top
 Profile  
 
PostPosted: Mon Jan 24, 2022 7:10 pm 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
Conn


Top
 Profile  
 
PostPosted: Mon Jan 24, 2022 7:11 pm 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
Jewe


Top
 Profile  
 
PostPosted: Mon Jan 24, 2022 7:12 pm 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
Chap


Top
 Profile  
 
PostPosted: Mon Jan 24, 2022 7:13 pm 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
Newc


Top
 Profile  
 
PostPosted: Mon Jan 24, 2022 7:14 pm 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
Rumi


Top
 Profile  
 
PostPosted: Mon Jan 24, 2022 7:15 pm 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
Side


Top
 Profile  
 
PostPosted: Mon Jan 24, 2022 7:17 pm 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
Raye


Top
 Profile  
 
PostPosted: Mon Jan 24, 2022 7:18 pm 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
Inte


Top
 Profile  
 
PostPosted: Mon Jan 24, 2022 7:19 pm 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
Volt


Top
 Profile  
 
PostPosted: Mon Jan 24, 2022 7:20 pm 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
Mick


Top
 Profile  
 
PostPosted: Mon Jan 24, 2022 7:21 pm 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
Accu


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1366 posts ]  Go to page 1, 2, 3, 4, 5 ... 55  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 17 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group