Printing Text On The Screen
You can print any English text on the screen by using printing channels for example:
var score=10, life=5
header.print "score: "+round(score) : pos=(0,0,0)
header2.print "life: "+round(life) : pos=(630,0,0)
This will print both score and life variables on both sides of the screen.
You can change fonts and text colors for example:
var score=10, life=5
header.print "score: "+round(score) : pos=(0,0,0) and font="yoshi" and color=red
header2.print "life: "+round(life) : pos=(630,0,0) and font="game1" and color=green

Notice that “header” and “header2” are channel names. You can give a channel any name you like.
Anytime you print using a given channel it will override the previous text in that channel unless you add the “append” flag for example:
header.print "Hello "
header.print "World"
Will print only “World”
While the following code:
header.print "Hello "
header.print "World" : append
Will print “Hello World”.
If you like to break the text into lines you should add the “newline” flag for example:
header.print "Hello "+newline
header.print "World" : append
Will print:
“Hello
World”
To change font size, use the size attribute for example:
header.print "Hello World" : size=7