Is there a way using scripts to set the opacity of the results of these following bitmap methods?
blt, stretch_blt, color fill and gradient fill
PS: I know that I can simply create an image opacity sheet (multiple copies of the image in varying opacity in the same file), but that will result to higher file size so I want to know if this can be done via scripts
Yes. blt and stretch_blt have opacity as an optional last parameter. If you don't change it, it is as it's copied. Color and Gradient fill can as well, but it's different. Instead of a last parameter, you need to build it into the colors. Colors are set as Red, Blue, Green, Opacity, so it's certainly possible, but it's a little bit more tedious.
Oh yes, I forgot that blt has one... it was actually just the fill methods...
do you mean that instead of just text_color(1), I'll do Color.new(R,G,B,alpha)?
Why didn't I think about it earlier??? haha... Thanks for the help!
oh... okay... I'll use the color way maybe as that allows me to have more control, and keeps it unlinked to the windowskins...
This can be closed now... thanks!
If you don't want to put it in a window then put it in a sprite.
I'm not sure what you are trying to do with a Color object when you're dealing with bitmaps.
I'm trying to add backgrounds to commands... I did it, but then I realized that I wanted to try to "animate" the way they are shown, which is why I came up with the question of how to set their opacity...
what I meant with the windowskin line is that text_color uses the windowskin color pallet, and using Color object allows you to set it to any color using the RGB values... and this is for the color fill and gradient fill bitmap methods...
anyway, Zalerinian already gave me the way to do it so I think this can be closed now...