Mikekan13 Posted August 10, 2010 Author Share Posted August 10, 2010 I am trying to add an option to switch between the top pixel being the transparent color and pure green. I tried this but it simply wont blt the image. How can I do this?```Public Sub Engine_BltFast(ByVal dx As Long, ByVal dy As Long, ByRef ddS As DirectDrawSurface7, srcRECT As RECT, trans As CONST_DDBLTFASTFLAGS, Optional greenTrans As Boolean) If greenTrans = True Then trans = RGB(0, 255, 0) End If``` Link to comment Share on other sites More sharing options...
Aydan Posted August 10, 2010 Share Posted August 10, 2010 why would you even want this feature?it takes 3 seconds to make a tileset or w.e to be compatible and having the ability to choose any colour background makes life easier… Link to comment Share on other sites More sharing options...
Mikekan13 Posted August 10, 2010 Author Share Posted August 10, 2010 Im not using it for a tileset Im using it like the way blood is used but my image is actually part of the top pixel Link to comment Share on other sites More sharing options...
Mikekan13 Posted August 10, 2010 Author Share Posted August 10, 2010 Nm Ill just move it down. Link to comment Share on other sites More sharing options...
Helladen Posted August 10, 2010 Share Posted August 10, 2010 @'Aydan':> why would you even want this feature?> > it takes 3 seconds to make a tileset or w.e to be compatible and having the ability to choose any colour background makes life easier…Not the time it takes to do it. It looks like crude having a whole black row. Why not just fix the problem at the source rather than wasting the time to do it? Link to comment Share on other sites More sharing options...
Aydan Posted August 10, 2010 Share Posted August 10, 2010 riiight i gotcha!! well someone might be able to help here later. We'll see. Link to comment Share on other sites More sharing options...
Kimimaru Posted August 11, 2010 Share Posted August 11, 2010 You need to make a small modification to the **InitDDSurf Sub**. Link to comment Share on other sites More sharing options...
Robin Posted August 11, 2010 Share Posted August 11, 2010 Find```Call SetMaskColorFromPixel(Surf, 0, 0)```Comment it out. At the top of that sub add```Dim TmpColorKey As DDCOLORKEY```Above the commented out SetMaskColorFromPixel, add this:```' set mask colourTmpColorKey.Low = &HFF00FFTmpColorKey.High = TmpColorKey.LowCall Surf.SetColorKey(DDCKEY_SRCBLT, TmpColorKey)```'&HFF00FF' is bright magenta. Change it to w/e you want. Link to comment Share on other sites More sharing options...
Mikekan13 Posted August 12, 2010 Author Share Posted August 12, 2010 Thank You Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now