|
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 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 -1. w 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:
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 |