+10 votes

hello again,

I was wondering how to break the line using GDscript on the label?
In GameMaker I used the # to break the line
like this: "This is #an example"

In the GameMaker is so, but in Godot how do you do it?

Can someone help me?

in Engine by (150 points)

1 Answer

+16 votes
Best answer


It's quite simple, and the standard for a lot of programming language : \n

This is \nan example

see Escape character

by (370 points)
selected by

Thank you and happy new year!

Thanks, saved me so much time, I thought this would be difficult, got the answer right away here!

Is \n not /n

so helpful, thanks

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.