Mirage Engine
Sprite Displayed on Char creation - Printable Version

+- Mirage Engine (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: Sprite Displayed on Char creation (/showthread.php?tid=2122)



Sprite Displayed on Char creation - skillzalot - 19-09-2008

I followed the tutorial posted the server when find but when I got to client I had this error

Compile Error Variable not define and it highlighted picsprites.hdc

Private Sub Timer_Timer()
On Error Resume Next
If optMale.Value = True Then
Call BitBlt(picPic.hdc, 0, 0, PIC_X, PIC_Y, picSprites.hdc, 0, Int(Class(cmbClass.ListIndex).Sprite) * PIC_Y, SRCCOPY)
Else
Call BitBlt(picPic.hdc, 0, 0, PIC_X, PIC_Y, picSprites.hdc, 0, Int(Class(cmbClass.ListIndex).Sprite) * PIC_Y, SRCCOPY)
End If
End Sub


Re: Sprite Displayed on Char creation - William - 19-09-2008

If picSprites isn't a picture box on your frmChars, then you need to state which form it is. ex: frmNPCeditor.picSprites.hdc


Re: Sprite Displayed on Char creation - skillzalot - 19-09-2008

It was tho. So I need to just add where the pic box is ok. Do i need to do that for both


Re: Sprite Displayed on Char creation - William - 19-09-2008

Yes, but that doesn't mean it will work. But you could try.


Re: Sprite Displayed on Char creation - skillzalot - 19-09-2008

now it highlight .picsprites and says compile error method or data member not found


Re: Sprite Displayed on Char creation - DarkX - 20-09-2008

Did you actually make the picSprites, picturebox? or did you by chance miss some letters when naming it? double check.


Re: Sprite Displayed on Char creation - skillzalot - 20-09-2008

I fixed it so dont worry