Hey,
I'm wondering if theres any way to set the alpha value of a drawn variable, like a variable version of draw_sprite_ext. This is my first non-tutorial game on gamemaker, so sorry if this is a stupid question.
Drawing transparent variables
Started by Maxamilius291, Mar 02 2012 09:50 PM
2 replies to this topic
#1
Posted 02 March 2012 - 09:50 PM
#2
Posted 02 March 2012 - 09:59 PM
You can use draw_set_alpha(newAlpha) to set the alpha before drawing. So if you wanted to draw text at 45% alpha:
The last line is just to reset the drawing alpha to 100% so things drawn after it aren't also using a 45% alpha.
-IMP
draw_set_alpha(0.45); draw_text(...); draw_set_alpha(1);
The last line is just to reset the drawing alpha to 100% so things drawn after it aren't also using a 45% alpha.
-IMP
#3
Posted 02 March 2012 - 10:20 PM
You can use draw_set_alpha(newAlpha) to set the alpha before drawing. So if you wanted to draw text at 45% alpha:
draw_set_alpha(0.45); draw_text(...); draw_set_alpha(1);
The last line is just to reset the drawing alpha to 100% so things drawn after it aren't also using a 45% alpha.
-IMP
Thanks, it's working perfectly now
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











