19-06-2006, 08:03 PM
funkynut Wrote:what do you mean not working, error, not loading properly, what?
sorry, i kinda didn't say did i? lol
i mean it's loading to the memory fine, but it's not being blt'ed on screen.... i'm very noob at blt so it's probably a noob error.
to test blt'ing it i've used this code:
Code:
Sub DrawNightSky()
rec.top = 0
rec.Bottom = 32
rec.Left = 0
rec.Right = 32
Dim dark1 As Long
Dim dark2 As Long
dark1 = GetPlayerX(MyIndex) * PIC_X + Player(MyIndex).XOffset + Int(PIC_X) - 10
dark2 = GetPlayerY(MyIndex) * PIC_Y + Player(MyIndex).YOffset - Int(PIC_Y) + 25
Call DD_BackBuffer.BltFast(dark1, dark2, DD_DARKSurf, rec, DDBLTFAST_WAIT Or DDBLTFAST_SRCCOLORKEY)
End Sub
is that right for the thing i'm trying to do? (and note: the place it blts to is just a test, it's not meant to be like... in right place/s yet lol)
edit: and yes, i've got the thing being called... i'm not THAT noobie.... anymore
