GMLscripts.com

Discuss and collaborate on GML scripts
Invert

You are not logged in.

#1 2015-08-26 07:53:43

mike.dailly
Member
Registered: 2011-10-04
Posts: 10

draw_text_outline()

Expand/// draw_text_outline(x,y,colour,text)
//
//  Draws black outline text using the currently supplied colour.
//  Will reset alpha level to 1.0
//
//  usage example:-
//          draw_text_outline(10,10,c_yellow,"Hello World");
//
/// GMLscripts.com/license
draw_set_colour(c_black)
draw_set_alpha(1.0);
draw_text(argument0-1,argument1, argument3);
draw_text(argument0+1,argument1, argument3);
draw_text(argument0,argument1-1, argument3);
draw_text(argument0,argument1+1, argument3);
draw_set_colour(argument2);
draw_text(argument0,argument1, argument3);

My fall back standard outline text rendering. Easy to modify for special uses, but usually used as-is for 99% of cases.

Last edited by mike.dailly (2015-08-26 07:53:54)

Offline

#2 2015-08-28 05:11:53

xot
Administrator
Registered: 2007-08-18
Posts: 1,240

Re: draw_text_outline()

Thanks Mike. I can't believe a script like this hasn't been added to the collection yet. smile


Abusing forum power since 1986.

Offline

Board footer

Powered by FluxBB