Printing in GameMaker Studio 2 (GMS2) permits builders to output textual content, variables, and different information to the console window or a specified file. It’s a beneficial device for debugging, logging info, and sharing information with different applications.
To print in GMS2, the print() perform is used. This perform takes a string as its argument and outputs it to the console window. For instance, the next code prints the string “Hey, world!” to the console: