How to break line on the label using GDscript ?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By ismaelgame7
:warning: Old Version Published before Godot 3 was released.

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?

:bust_in_silhouette: Reply From: Nutr1z

Hi,

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

This is \nan example

see Escape character

Thank you and happy new year!

ismaelgame7 | 2016-12-31 15:39

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

Sojan | 2018-12-05 17:31

Important:
Is \n not /n

luislodosm | 2020-10-27 22:52

so helpful, thanks

mystico | 2022-11-03 00:58