Text on the screen

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
Arkon
Regular
Posts: 32
Joined: Wed Sep 21, 2011 5:15 am
Contact:

Text on the screen

#1 Post by Arkon » Sun Feb 26, 2012 6:41 am

I'd like first part of my game to be introduction, with text on the screen (like in the Tsukihime), not down. How to make it and how to return to the normal mode after the introduction?

User avatar
roankun
Regular
Posts: 94
Joined: Fri Jun 11, 2010 4:01 am
Projects: RHS
Contact:

Re: Text on the screen

#2 Post by roankun » Sun Feb 26, 2012 9:23 am

I think you'd just have to use NVL mode for the intro... (not sure what you mean; never played Tsukihime)
http://www.renpy.org/doc/html/screen_special.html#nvl
I don't have any kind words to spare to someone who already has all the reason in the world to feel good about himself.
http://roankun.wordpress.com/

Arkon
Regular
Posts: 32
Joined: Wed Sep 21, 2011 5:15 am
Contact:

Re: Text on the screen

#3 Post by Arkon » Sun Feb 26, 2012 9:45 am

http://vndb.org/v7 sorry, here are some screens from Tsukihime, to show how it should look.

User avatar
roankun
Regular
Posts: 94
Joined: Fri Jun 11, 2010 4:01 am
Projects: RHS
Contact:

Re: Text on the screen

#4 Post by roankun » Sun Feb 26, 2012 11:34 am

Well, like I said, use NVL-mode. Here's a link to the old wiki. It's still the same, I think.http://www.renpy.org/wiki/NVL

I'm sorry, I'm no genius programmer, and I've never used NVL mode before, but I figure what you're trying to do is just assign a character, perhaps a narrator, to kind=nvl and then just use that character exclusively for the intro. Just use the regular method for the other characters.
I don't have any kind words to spare to someone who already has all the reason in the world to feel good about himself.
http://roankun.wordpress.com/

User avatar
Camille
Eileen-Class Veteran
Posts: 1227
Joined: Sat Apr 23, 2011 2:43 pm
Completed: Please see http://trash.moe
Projects: the head well lost
Organization: L3
Tumblr: narihira
Deviantart: crownwaltz
itch: lore
Contact:

Re: Text on the screen

#5 Post by Camille » Sun Feb 26, 2012 2:23 pm

Define an NVL "character" and a regular character:

Code: Select all

define nvl_mode = Character(None, kind=nvl)
define normal = Character('Bob')
Then when you want your text to be in NVL mode, use the NVL character and when you want your text to be in the dialogue box, use the other character(s).

Code: Select all

    nvl "This NVL text will take up the whole screen."
    nvl clear
    normal "This text will be back in the dialogue box."

Arkon
Regular
Posts: 32
Joined: Wed Sep 21, 2011 5:15 am
Contact:

Re: Text on the screen

#6 Post by Arkon » Mon Feb 27, 2012 5:42 am

I did this:
define nvl_mode = Character(None, kind=nvl)
label start:
scene bg back1
nvl "There were times when the world was in the power of the ancient spirits."
"Ghosts and gods that lived in the forests, mounatins, and rivers were praised by humankind."
nvl clear
But when I run the game, it says:
On line 22 of d:\renpy\asagi-win32/game/script.rpy: expected statement.
nvl "There were times when the world was in the power of the ancient spirits."
Anyone has an idea what I'm doing wrong?

User avatar
Camille
Eileen-Class Veteran
Posts: 1227
Joined: Sat Apr 23, 2011 2:43 pm
Completed: Please see http://trash.moe
Projects: the head well lost
Organization: L3
Tumblr: narihira
Deviantart: crownwaltz
itch: lore
Contact:

Re: Text on the screen

#7 Post by Camille » Mon Feb 27, 2012 10:27 am

If you've defined your character as nvl_mode, you need to use that when you call that character. So instead of nvl "There were times..." you need to use nvl_mode there. I made a mistake in my coding earlier.

Post Reply

Who is online

Users browsing this forum: mold.FF