Line Breaks

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
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.
Post Reply
Message
Author
ghazghkull
Newbie
Posts: 5
Joined: Tue Dec 12, 2006 12:29 am
Contact:

Line Breaks

#1 Post by ghazghkull » Wed Dec 13, 2006 8:46 pm

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:

#2 Post by Watercolorheart » Wed Dec 13, 2006 8:57 pm

{p} adds a linebreak while pausing the line, but I don't know if that's what you want ... I never use it, myself ... (very rarely)

So that

"I saw {p} YOU" becomes:

"I saw"

CLICK

"I saw
YOU"
I'm not even the same person anymore

User avatar
NetGenSuperstar
Regular
Posts: 113
Joined: Sun Oct 08, 2006 1:29 am
Location: BEHIND YOU!!!
Contact:

#3 Post by NetGenSuperstar » Wed Dec 13, 2006 9:23 pm

Type \n to get a line break. So:

Code: Select all

"This is\ndialogue."
will display as:

Code: Select all

This is
dialogue.

ghazghkull
Newbie
Posts: 5
Joined: Tue Dec 12, 2006 12:29 am
Contact:

#4 Post by ghazghkull » Thu Dec 14, 2006 3:16 am

Thanks a lot ^^

User avatar
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

#5 Post by phantmoftheomsi » Thu Nov 04, 2021 1:00 am

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.

Inksword
Regular
Posts: 81
Joined: Fri Oct 24, 2014 1:20 am
Tumblr: inksword
Contact:

Re: Line Breaks

#6 Post by Inksword » Thu Nov 04, 2021 1:38 am

phantmoftheomsi wrote:
Thu Nov 04, 2021 1:00 am
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.
It works for me:

Code: Select all

"Some words.\nA linebreak"
gives me:
Screen Shot 2021-11-03 at 10.29.21 PM.png

You should probably look at the text documentation next time instead of reviving a fifteen year old thread lol.

User avatar
AVNSnax
Regular
Posts: 35
Joined: Sun Feb 06, 2022 12:11 am
itch: avnsnax
Contact:

Re: Line Breaks

#7 Post by AVNSnax » Mon Mar 14, 2022 8:21 pm

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.

Post Reply

Who is online

Users browsing this forum: Bing [Bot], _ticlock_