draw_text_ext(x,y,string,sep,w)

x = Horizontal position (in pixels) on screen.

y = Vertical position (in pixels) on screen.

string = The thing you want displayed on screen.

sep = Distance between lines in multi lined text.

w = Width of text line (in pixels).

 

Example #1:

draw_text_ext(0,0,"Hello Everyone! Isn't GMKB wonderful!!",10,600);

 

draw_text_ext works exactly like draw_text but two extra options, sep is the amount of 'gap' to leave between each line of text, a bit like line spacing, for the default spacing, use -1w is the width of the line (in pixels) before it wraps around to the next line, so if you had a long text string, for example:

 

draw_text_ext(0,0,"The GM Knowledge base (formally known as GML Explained) is a complete help file that explains the Game Maker Language in great detail, complete with examples. It also has many questions and answers as well as tutorials to help create that perfect game.",10,600);

 

you could have w as room_width which will automatically wrap the text to the next line when it reaches the right hand side of the room.

 

Revision #1