Line Breaks
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
-
ghazghkull
- Newbie
- Posts: 5
- Joined: Tue Dec 12, 2006 12:29 am
- Contact:
Line Breaks
Hey I'm just wondering how does one do a line break for this one? I mean I know with HTML you use the <BR> command to make a new line, but how is that done for Ren'Py? Or rather what's the code for Ren'Py?
-
Watercolorheart
- Eileen-Class Veteran
- Posts: 1314
- Joined: Mon Sep 19, 2005 2:15 am
- Completed: Controlled Chaos / Sum of the Parts / "that" Midna game with ZONEsama
- Projects: Sparse Series/Oddments Shop original cartoon in Pevrea; Cybernetic Duels (fighting game); Good Vibin'
- Organization: Watercolorheart Studios
- IRC Nick: BCS
- Tumblr: adminwatercolor
- Deviantart: itsmywatercolorheart
- Github: Watercolordevdev
- Skype: heartnotes
- Soundcloud: Watercollider
- itch: watercolorheart
- Location: Florida
- Contact:
- NetGenSuperstar
- Regular
- Posts: 113
- Joined: Sun Oct 08, 2006 1:29 am
- Location: BEHIND YOU!!!
- Contact:
Type \n to get a line break. So:
will display as:
Code: Select all
"This is\ndialogue."Code: Select all
This is
dialogue.-
ghazghkull
- Newbie
- Posts: 5
- Joined: Tue Dec 12, 2006 12:29 am
- Contact:
- phantmoftheomsi
- Newbie
- Posts: 17
- Joined: Sat Oct 30, 2021 12:57 am
- Completed: None yet
- Projects: A modern adaptation of ancient Chinese crime fiction.
- Deviantart: phantomoftheomsi
- Contact:
Re: Line Breaks
I tried \n and got an infinite loop.
Is this method for a line break still viable? I noticed this post is 15 years old and the engine may have been updated.
Is this method for a line break still viable? I noticed this post is 15 years old and the engine may have been updated.
Re: Line Breaks
It works for me:phantmoftheomsi wrote: ↑Thu Nov 04, 2021 1:00 amI tried \n and got an infinite loop.
Is this method for a line break still viable? I noticed this post is 15 years old and the engine may have been updated.
Code: Select all
"Some words.\nA linebreak"You should probably look at the text documentation next time instead of reviving a fifteen year old thread lol.
Re: Line Breaks
Sorry for reviving a 16 (!) -year old thread, but "\n" doesn't in fact appear to work inside a custom text tag...I had to resort to a function and ugly syntax to accomplish this.
Who is online
Users browsing this forum: Bing [Bot], _ticlock_
