Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Changing Transparency Color
#1
Ok I was told before I beleive the first pixel on the image sets the transparency but that doesnt work.. I change the first and it shows the color then. Im talking about for tiles.bmp or sprites.bmp

I want to change the transparency color from black because black is used a lot and thats stupid.

Thanks.
Reply
#2
in modDirectX look for where it sets the key. Change that value to whatever.
Reply
#3
Ok why are they 0's... I know black but isnt there more than 1 zero for that

Code:
' Set the key for masks
    With Key
        .low = 0
        .high = 0
    End With

nevermind I take it that its using the color constant for black

ok after trying that... its not that as that doesnt work.
Reply
#4
theres a tut in old forums I would search but I gtg class is done xP
Reply
#5
Its fine I figured it out. It was working what I had someone is helping now and they had something changed I fixed it.
Reply
#6
for others that don't know, its the rgb long value.
both low and high should be the same.
Reply
#7
Two notes:
- I know this the old forum
- I know he said the hint how to get it above but I still can't get it to work

my code:
Code:
' Set the key for masks
    With Key
        .low = RGB(0, 117, 117)
        .high = RGB(0, 117, 117)
    End With
Reply
#8
Theres a tutorial on THIS forum for this.. and it does work, I've used it in every source I have.

EDIT: here it is, it's tested and works.
http://web.miragesource.com/forums/viewt...f=75&t=932
Reply
#9
indeed it does, thanks for the help Smile
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)