Textbox briefly appearing before centered built-in Character

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
RicharDann
Veteran
Posts: 286
Joined: Thu Aug 31, 2017 11:47 am
Contact:

Textbox briefly appearing before centered built-in Character

#1 Post by RicharDann »

I have noticed that the first time the centered Character is used, the textbox appears below the text and quickly dissappears.

Code: Select all

label start:
    scene living_room with dissolve
    
    #show a centered text, the window briefly flashes below
    centered "Some centered text"
    
    # here it doesn't happen anymore, I guess because the background is already set to None
    centered "Some more centered text"

It seems to happen only when the background property needs to change from the default textbox to transparent (None).

Is there a way I can avoid this? I'm aware I could use show text but I want to take advantage of cps speed.
The most important step is always the next one.

User avatar
isobellesophia
Miko-Class Veteran
Posts: 979
Joined: Mon Jan 07, 2019 2:55 am
Completed: None
Projects: Maddox and Friends! (AI Teacher friend), Friendly Universities! (Soon)
Organization: Friendly Teachers series
Deviantart: SophBelle
itch: Child Creation
Location: Philippines, Mindanao
Contact:

Re: Textbox briefly appearing before centered built-in Character

#2 Post by isobellesophia »

What if you put the

Code: Select all

window show dissolve
centered "Some text"
window hide dissolve
I am a friendly user, please respect and have a good day.


Image

Image


User avatar
RicharDann
Veteran
Posts: 286
Joined: Thu Aug 31, 2017 11:47 am
Contact:

Re: Textbox briefly appearing before centered built-in Character

#3 Post by RicharDann »

isobellesophia wrote: Fri Sep 13, 2019 10:19 pm What if you put the

Code: Select all

window show dissolve
centered "Some text"
window hide dissolve
That dissolves the image in and out, but what I need in this case is for the textbox to not appear in the first place.
However, this made me realize I can just:

Code: Select all

window hide
centered "Some text"
This appears to fix the issue, I would have to type that extra line of code everytime but it's ok, I won't need to use centered that often.
Thanks for the help!
The most important step is always the next one.

Post Reply

Who is online

Users browsing this forum: Google [Bot]