Printing in GameMaker Studio 2 (GMS2) allows developers to output text, variables, and other data to the console window or a specified file. It is a valuable tool for debugging, logging information, and sharing data with other programs.
To print in GMS2, the print() function is used. This function takes a string as its argument and outputs it to the console window. For example, the following code prints the string “Hello, world!” to the console: