Game Development Community

Guimltext

by Howard Dortch · in Torque Game Engine · 11/20/2005 (6:21 am) · 2 replies

Can someone tell me how to put a newline command in MLText? The CenterPrint function has a variable called %lines but I can't find how GuiMLText interpets a newline character. I want to print 2 lines of text.

#1
11/20/2005 (9:25 am)
You can seperate your lines using NL. eg if you add %text to the ML control where %text holds:
%text = "Hello this is line one" NL "and this is line two";
#2
11/20/2005 (9:39 am)
Or you can use \n %text = "The cat and the dog\nran away";