function draw_text_outline_glow(var x,var y,STRING* str, VECTOR* color,VECTOR* outline_color, var glow_distance)
{
var i, j, a,c;
draw_textmode(NULL,0,0,100);
draw_text(str,x+(glow_distance/2),y+(glow_distance/2),color);
for (i = x - glow_distance; i <= x + glow_distance; i++ )
{
c++;a=((100/glow_distance))/(50/c);
for (j = y - glow_distance; j <= y + glow_distance; j++)
{
draw_textmode(NULL,0,0,a);
draw_text(str, i, j, outline_color);
}
}
c=0;
}
then try with:
draw_text_outline_color(300,130,"hello world",vector(10,10,10),vector(244,244,244),3);
like
while(1){
draw_text_outline_glow(300,130,"hello world",vector(10,10,10),vector(244,244,244),3);
wait(1);
}
the more glow distance, the slower the effect..