Keep textbox during ImageDissolve transition

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
SlayerGG
Newbie
Posts: 7
Joined: Wed Aug 11, 2021 11:50 am
Completed: The Delusion of Dream
Organization: Snowflake Soft
Discord: SlayerGG#6459
Contact:

Keep textbox during ImageDissolve transition

#1 Post by SlayerGG »

Hello!
I am trying to find a way to keep textbox during an ImageDissolve transition.
I have a custom horizontal blinds image that I want to use with a quick ImageDIssolve transition during sprite change (like Never7) but so far couldn't find a way to prevent textbox from disappearing.
Is there a way to use a custom transition image while keeping textbox on screen?

User avatar
Potato0095
Regular
Posts: 84
Joined: Sun May 08, 2016 8:40 pm
Projects: LoveCraft
itch: potato95
Location: Brazil
Contact:

Re: Keep textbox during ImageDissolve transition

#2 Post by Potato0095 »

Using the "window show" command should do what you want iirc
"There are two types of lies: Lies that hurt, and lies that don't."

User avatar
SlayerGG
Newbie
Posts: 7
Joined: Wed Aug 11, 2021 11:50 am
Completed: The Delusion of Dream
Organization: Snowflake Soft
Discord: SlayerGG#6459
Contact:

Re: Keep textbox during ImageDissolve transition

#3 Post by SlayerGG »

Tried it now but it just does the transition while hiding textbox, fades the screen to black and back, brings back textbox and then continues as normal.
Here is my code:

Code: Select all

"blablabla"
window show
show p3kao4 with blind
"blablabla"

User avatar
Potato0095
Regular
Posts: 84
Joined: Sun May 08, 2016 8:40 pm
Projects: LoveCraft
itch: potato95
Location: Brazil
Contact:

Re: Keep textbox during ImageDissolve transition

#4 Post by Potato0095 »

It's very likely that's because of how your transition (blind) works. Iirc, each transition is different, and some can even hide the textbox, such as fade.

Test with dissolve to see if it works (either use dissolve or Dissolve(1) ).
Also check: https://www.renpy.org/doc/html/displayi ... how-window
"There are two types of lies: Lies that hurt, and lies that don't."

User avatar
SlayerGG
Newbie
Posts: 7
Joined: Wed Aug 11, 2021 11:50 am
Completed: The Delusion of Dream
Organization: Snowflake Soft
Discord: SlayerGG#6459
Contact:

Re: Keep textbox during ImageDissolve transition

#5 Post by SlayerGG »

Tested with dissolve and now it hides the textbox, fades the screen to black and back, does the transition and after that shows the textbox.
I've also determined that it actually shows NVL window for a brief moment after fading to black and back and before showing textbox. I had a brief NVL scene before and if I delete nvl clear then it will show last text of NVL mode when I use window show.

User avatar
Potato0095
Regular
Posts: 84
Joined: Sun May 08, 2016 8:40 pm
Projects: LoveCraft
itch: potato95
Location: Brazil
Contact:

Re: Keep textbox during ImageDissolve transition

#6 Post by Potato0095 »

Try opening Options.rpy and setting config.window to show. It's set to auto by default.

Code: Select all

define config.window = "show"
I don't really understand why your textbox is being hidden, it should not by now (I just tested the default blinds transition and it worked perfectly).
"There are two types of lies: Lies that hurt, and lies that don't."

User avatar
SlayerGG
Newbie
Posts: 7
Joined: Wed Aug 11, 2021 11:50 am
Completed: The Delusion of Dream
Organization: Snowflake Soft
Discord: SlayerGG#6459
Contact:

Re: Keep textbox during ImageDissolve transition

#7 Post by SlayerGG »

Nope, still the same.
My Ren'Py version is 7.3.5.606 btw if that can help.

User avatar
Potato0095
Regular
Posts: 84
Joined: Sun May 08, 2016 8:40 pm
Projects: LoveCraft
itch: potato95
Location: Brazil
Contact:

Re: Keep textbox during ImageDissolve transition

#8 Post by Potato0095 »

Update your Ren'Py to the latest release. See if it helps. I didn't see anything around the changelogs but who knows.
Also, can you send me the project, or a new project replicating this bug, so I can see for myself?
"There are two types of lies: Lies that hurt, and lies that don't."

User avatar
SlayerGG
Newbie
Posts: 7
Joined: Wed Aug 11, 2021 11:50 am
Completed: The Delusion of Dream
Organization: Snowflake Soft
Discord: SlayerGG#6459
Contact:

Re: Keep textbox during ImageDissolve transition

#9 Post by SlayerGG »

Updated Ren'Py, still didn't fix it. Made a new project, tried it there and it worked.
Quickly cutted everything non-essential as far as I could from my project and made this one to show the bug.
https://drive.google.com/file/d/1_YMxag ... sp=sharing

User avatar
Potato0095
Regular
Posts: 84
Joined: Sun May 08, 2016 8:40 pm
Projects: LoveCraft
itch: potato95
Location: Brazil
Contact:

Re: Keep textbox during ImageDissolve transition

#10 Post by Potato0095 »

As I thought, it was a unique thing of your project. Removing this line

Code: Select all

config.empty_window = nvl_show_core
from the script made the transition work.

If you don't mind me asking, why are you defining empty_window to nvl_show_core?
"There are two types of lies: Lies that hurt, and lies that don't."

User avatar
SlayerGG
Newbie
Posts: 7
Joined: Wed Aug 11, 2021 11:50 am
Completed: The Delusion of Dream
Organization: Snowflake Soft
Discord: SlayerGG#6459
Contact:

Re: Keep textbox during ImageDissolve transition

#11 Post by SlayerGG »

This worked, thank you! I should've posted my script file from the beginning.
In my original project I also had to set

Code: Select all

config.window_hide_transition = None
config.window_show_transition = None
or else it would continue fading to black and back.
If you don't mind me asking, why are you defining empty_window to nvl_show_core?
Honestly, I can't remember now. I think me or other person in my team who is helping me with code were trying to implement something with it but forgot to delete it afterwards and then started to ignore it thinking that it should be there or something.

User avatar
Potato0095
Regular
Posts: 84
Joined: Sun May 08, 2016 8:40 pm
Projects: LoveCraft
itch: potato95
Location: Brazil
Contact:

Re: Keep textbox during ImageDissolve transition

#12 Post by Potato0095 »

Oh, alright then, glad it worked out in the end!
"There are two types of lies: Lies that hurt, and lies that don't."

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot]