varto the screen. This function can handle all different data types: You can print strings, numbers, tables, functions. The data is printed at the current cursor position which you can modify by calling Locate().
This function uses word-wrapping, e.g. when the margin is reached and a word cannot be printed in the same line, it will insert a line break automatically. You can manually set the margins by using the SetMargins() function.
This function also respects your tabulator settings. If you print a string which contains a tabulator char ("\t"), print will jump to the next tabulator position. You can define the tabulator settings with the AddTab() and ResetTabs() commands.
You can also specify escape codes here. See String data type for details.
If layers are enabled this command will add a new layer of the type
Starting with Hollywood 2.0 you can pass as many arguments as you want to this function. If you pass multiple arguments to this function, they will be printed with a space to separate them.
Starting with Hollywood 2.5 you can use format tags in the string
you pass to
Print(). Using these tags you can control the font
style and color of your text on-the-fly. Format tags always
start and end with a square bracket ('['). In case you just
want to print a square bracket, you will have to use two square
brackets. If there is only one square bracket Hollywood will
always expect a format tag. See Format tags for details.
Print(), you can also use the functions NPrint() and TextOut()
to draw text to the screen.
Print("Hello World!")Prints "Hello World!" to the screen at the current cursor position.