How to get the Transparency to actually work?
Posted: Mon Dec 27, 2010 11:00 am
I have a problem in which im not sure what i am doing wrong.
What i am trying to do is load brushes, make them into animation, and then display that animation so that there is transparent color. For i dont want boxes to display in my game.
Im not really sure where the problem lies. According to hollywood guide, I am doing right. But it still doesnt work. My best guess is that the problem resides in different displays giving different colors, but one of my solutions should fix even that one.
Heres the code with pictures so you can see the problem for yourself: (I will take this off after problem is solved)
http://dl.dropbox.com/u/3375468/GrabAnim.zip
What i have tried so far:
1. Loadbrush/LaodAnim Transparency = #GREEN /$00FF00 (full green)
2. I also tried changing one of the pictures green into $000100 (smallest possible amount of green) in hopes it would work on every screen, no help.
3. I loaded first brush, selected it as output device, then color=readpixel(1,1) *which should be that green i am wanting to be transparent.
Then after that i loaded the rest of brushes, made them into animation, and used LoadBrush( 1, filename, {Transparency=color}) as well as LoadAnim with same Transparency=color.
But even that didnt help.
4. I have also used in all these previous examples the RealColor() Function, but even that havent helped.
What am i doing wrong in here? Why cant i get that Green become transparent?
What i am trying to do is load brushes, make them into animation, and then display that animation so that there is transparent color. For i dont want boxes to display in my game.
Im not really sure where the problem lies. According to hollywood guide, I am doing right. But it still doesnt work. My best guess is that the problem resides in different displays giving different colors, but one of my solutions should fix even that one.
Heres the code with pictures so you can see the problem for yourself: (I will take this off after problem is solved)
http://dl.dropbox.com/u/3375468/GrabAnim.zip
What i have tried so far:
1. Loadbrush/LaodAnim Transparency = #GREEN /$00FF00 (full green)
2. I also tried changing one of the pictures green into $000100 (smallest possible amount of green) in hopes it would work on every screen, no help.
3. I loaded first brush, selected it as output device, then color=readpixel(1,1) *which should be that green i am wanting to be transparent.
Then after that i loaded the rest of brushes, made them into animation, and used LoadBrush( 1, filename, {Transparency=color}) as well as LoadAnim with same Transparency=color.
But even that didnt help.
4. I have also used in all these previous examples the RealColor() Function, but even that havent helped.
What am i doing wrong in here? Why cant i get that Green become transparent?