| Mirage Source http://miragesource.net/forums/ |
|
| Issues; male female;32x64 http://miragesource.net/forums/viewtopic.php?f=201&t=4107 |
Page 1 of 1 |
| Author: | DarkX [ Wed Aug 06, 2008 12:39 am ] |
| Post subject: | Issues; male female;32x64 |
Ok I have installed the male female system; and the 32x64 sprite system; but now the show sprite on char create system will not work with the 32x64 system; any suggestions? |
|
| Author: | GIAKEN [ Wed Aug 06, 2008 12:49 am ] |
| Post subject: | Re: Issues; male female;32x64 |
Yeah I got mine to work. Make a timer with an interval of 50. Double click it and add this: Code: SelectNewCharBlt Then add this sub wherever: Code: Public Sub SelectNewCharBlt() Dim sRECT As RECT Dim sRECT2 As RECT Dim dRECT As RECT With dRECT .top = 0 .Bottom = 32 .Left = 0 .Right = 32 End With If DD_SpriteSurf Is Nothing Then Else With sRECT If frmNewChar.optMale.Value = True Then .top = (tmpNewChar(frmNewChar.cmbClass.ListIndex + 1) * PIC_Y * 2) Else .top = (tmpNewChar2(frmNewChar.cmbClass.ListIndex + 1) * PIC_Y * 2) End If .Left = PIC_X * 3 .Right = .Left + 32 .Bottom = .top + 32 End With With sRECT2 .top = sRECT.top + 32 .Left = sRECT.Left .Right = sRECT.Right .Bottom = .top + 32 End With Call DD_SpriteSurf.BltToDC(frmNewChar.picpic(1).hdc, sRECT, dRECT) Call DD_SpriteSurf.BltToDC(frmNewChar.picpic(2).hdc, sRECT2, dRECT) frmNewChar.picpic(1).Refresh frmNewChar.picpic(2).Refresh End If End Sub Also make sure you make 2 picture boxes called picpic with indexes 1-2 with sizes of 32x32 and 1 is above 2 (obviously). Also make sure you put InitDirectX in Sub Main(). |
|
| Author: | GIAKEN [ Wed Aug 06, 2008 1:04 am ] |
| Post subject: | Re: Issues; male female;32x64 |
Also you need to set up the arrays. Top of modHandleData add: Code: Public tmpNewChar() As Long Public tmpNewChar2() As Long Under: Code: ReDim Class(0 To Max_Classes) As ClassRec Add: Code: ReDim tmpNewChar(1 To Max_Classes + 1) As Long ReDim tmpNewChar2(1 To Max_Classes + 1) As Long I'm not completely sure how you set up your packets...but I had my male sprite as 8 and my female sprite as 9...so above (in the same packet): Code: n = n + 10 Add: Code: tmpNewChar(I + 1) = Val(Parse$(n + 8))
tmpNewChar2(I + 1) = Val(Parse$(n + 9)) |
|
| Author: | DarkX [ Wed Aug 06, 2008 1:35 am ] |
| Post subject: | Re: Issues; male female;32x64 |
Ok, I had it working on my old version without all the special stuff; but I'll try that. Thanks. |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|