How to Create a Line Break in Gamemaker Studio 2

Question: How do you create a line break in Gamemaker Studio 2?

Answer:

Use \n to create a line break.

Example:

show_debug_message(Line 1\nLine 2);

This will output in the console like so:

Line 1
Line 2

Note: If you’re using Gamemaker: Studio (not Gamemaker Studio 2), use # instead.

About The Author

Mike Miller
Mike Miller Since the age of nine, Mike Miller has been coding his own games, visualizations, and other technological projects.

Comments