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.
nanashi
Regular
Posts: 78 Joined: Tue Aug 09, 2011 12:54 am
Contact:
#1
Post
by nanashi » Wed Sep 21, 2011 4:17 am
Hi. I know we use "\n" to start text with a new line.
But how do we start new line before character speaks?
Below is what I'm looking for.
Testing.
John "Hello world!"
If I write this way,
Code: Select all
a " Testing."
john "\n Hello world!"
it comes out like this.
Testing.
John "
Hello world!"
I'm sorry, I looked up for old threads but found nothing.
I need some help.
Last edited by
nanashi on Wed Sep 21, 2011 12:38 pm, edited 1 time in total.
Aleema
Lemma-Class Veteran
Posts: 2677 Joined: Fri May 23, 2008 2:11 pm
Organization: happyB
Tumblr: happybackwards
Contact:
#2
Post
by Aleema » Wed Sep 21, 2011 5:20 am
This sort of writing is best suiting with
NVL mode . Are you using NVL characters?
nanashi
Regular
Posts: 78 Joined: Tue Aug 09, 2011 12:54 am
Contact:
#3
Post
by nanashi » Wed Sep 21, 2011 6:19 am
I am.
Here's my code for the character.
Code: Select all
$ char = Character(povname, image="protagonist", kind=nvl,ctc=anim.Blink("system/screen/arrow.png"),what_outlines=[(1.5, "#000") ])
KimiYoriBaka
Miko-Class Veteran
Posts: 636 Joined: Thu May 14, 2009 8:15 pm
Projects: Castle of Arhannia
Contact:
#4
Post
by KimiYoriBaka » Wed Sep 21, 2011 6:46 am
have you tried putting the "\n" at the end of the previous line?
nanashi
Regular
Posts: 78 Joined: Tue Aug 09, 2011 12:54 am
Contact:
#5
Post
by nanashi » Wed Sep 21, 2011 7:44 am
Yep. But I have "ctc=anim.Blink".
If I put "\n" at the end, the arrow doesn't show at the end of the line.
Last edited by
nanashi on Wed Sep 21, 2011 11:19 am, edited 1 time in total.
Aleema
Lemma-Class Veteran
Posts: 2677 Joined: Fri May 23, 2008 2:11 pm
Organization: happyB
Tumblr: happybackwards
Contact:
#6
Post
by Aleema » Wed Sep 21, 2011 7:47 am
OH, have you tried vspace? You use it like this:
Code: Select all
a " Testing."
john "{vspace=30}Hello world!"
Try that out.
nanashi
Regular
Posts: 78 Joined: Tue Aug 09, 2011 12:54 am
Contact:
#7
Post
by nanashi » Wed Sep 21, 2011 8:33 am
Thanks. I tried, I got this error.
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/test.rpy", line 2529, in script
john "{vspace=30}hello world"
File "renpy-6.12.0-mainline/common/00nvl_mode.rpy", line 250, in python
Exception: Text tag vspace=30 was not recognized. Case and spacing matter here.
Can you tell me where I'm doing wrong?
Aleema
Lemma-Class Veteran
Posts: 2677 Joined: Fri May 23, 2008 2:11 pm
Organization: happyB
Tumblr: happybackwards
Contact:
#8
Post
by Aleema » Wed Sep 21, 2011 8:50 am
Actually, I think that code only works for 6.13 version of Ren'Py ... Sorry. ^^;
Maybe a blank line with {nw} tag in it?
Code: Select all
a " Testing."
"{nw}"
john "Hello world!"
I haven't tested that. Maybe it works.
nanashi
Regular
Posts: 78 Joined: Tue Aug 09, 2011 12:54 am
Contact:
#9
Post
by nanashi » Wed Sep 21, 2011 9:07 am
I think {nw} doesn't work.
It starts with the same line.
I'm downloaing 6.13 right now and see if vspace will work.
nanashi
Regular
Posts: 78 Joined: Tue Aug 09, 2011 12:54 am
Contact:
#10
Post
by nanashi » Wed Sep 21, 2011 9:16 am
Okay, I got 6.13 and tried vspace.
It doesn't work. It looks like this.
Last edited by
nanashi on Wed Sep 21, 2011 11:19 am, edited 1 time in total.
Aleema
Lemma-Class Veteran
Posts: 2677 Joined: Fri May 23, 2008 2:11 pm
Organization: happyB
Tumblr: happybackwards
Contact:
#11
Post
by Aleema » Wed Sep 21, 2011 10:49 am
Wow, that sucks. It really seems like you can't get the effect you want ...
This is the last thing I would suggest, but maybe you can create a new character. And in that character, you adjust the top padding/margin.
Code: Select all
$ big_space = NVLCharacter(None, kind=nvl, window_top_padding = 30)
-___- Hope it works for you.
nanashi
Regular
Posts: 78 Joined: Tue Aug 09, 2011 12:54 am
Contact:
#12
Post
by nanashi » Wed Sep 21, 2011 11:18 am
That works!
Thanks you so much
Users browsing this forum: No registered users