Textbox issue.

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
User avatar
ash.earl
Newbie
Posts: 20
Joined: Mon Jun 13, 2016 9:49 pm
Contact:

Textbox issue.

#1 Post by ash.earl » Thu Jul 07, 2016 12:50 pm

Hello! I am currently making a visual novel right now, but I have an issue with the textbox. Every time a character changes expressions, the textbox disappears and then reappears. I don't know how to fix this, so if someone would help me, that would be great. Here is the code that I have now:

Code: Select all

label start:
    scene disclaimer bg
    with dissolve
    show nobuyuki happy at center
    with dissolve
    
    n "Hello, friends!"
    
    show nobuyuki normal at center
    with dissolve
    
    n "My name's Nobuyuki, and I'm going to be one of the characters in this game."
    n "Are you wondering why I'm here?"
    n "I guess I'll tell you: to throw out a disclaimer, credits, yeah... Whatever you want to call it."
    
    show nobuyuki concerned at center
    with dissolve
    
    n "Uh, let's see..."
Every time I launch the project, when Nobuyuki changes his expression, the textbox disappears, it changes Nobuyuki's expression, and then the textbox reappears. I just want the textbox to be there the whole entire time throughout the game without all the disappearing and reappearing. Is there any way to fix this?

Thanks,
ash.earl

User avatar
Donmai
Eileen-Class Veteran
Posts: 1919
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: Textbox issue.

#2 Post by Donmai » Thu Jul 07, 2016 1:08 pm

It's normal that the window disappears during transitions. Try putting the line

Code: Select all

window show
as the first line in your label start. Of course, any time you want the dialogue to disappear, you may use

Code: Select all

window hide
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

Post Reply

Who is online

Users browsing this forum: Majestic-12 [Bot], _ticlock_