flashing dialogue window with sprite dissolve

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
Preludian
Regular
Posts: 81
Joined: Wed Nov 05, 2008 9:10 am
Contact:

flashing dialogue window with sprite dissolve

#1 Post by Preludian »

Hi,

I noticed that everytime I change a sprite (with dissolve) that the dialog window always disappears for a short moment and then reappears after the sprite is rendered. And I don't like this flashing of the window. Is there a way to keep dissolves (to better fade between two mimics) but also get rid of the flashing dialog window?

User avatar
PyTom
Ren'Py Creator
Posts: 16093
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: flashing dialogue window with sprite dissolve

#2 Post by PyTom »

Yes, use:

Code: Select all

window show
to keep the window shown, and

Code: Select all

window hide


to hide it again.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

User avatar
mugenjohncel
Hentai Poofter
Posts: 2121
Joined: Sat Feb 04, 2006 11:13 pm
Organization: Studio Mugenjohncel
Location: Philippines
Contact:

Re: flashing dialogue window with sprite dissolve

#3 Post by mugenjohncel »

Hmm... this is very relevant to my needs...

I'm gonna do a follow-up

How and where do I write this and does it allow transition?... (You know... make dialogue windows dissapear with dissolve)

"POOF" (Disappears)

User avatar
PyTom
Ren'Py Creator
Posts: 16093
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: flashing dialogue window with sprite dissolve

#4 Post by PyTom »

You can do:

Code: Select all

window show dissolve
and

Code: Select all

window hide dissolve
There are also a pair of config variables that control it (I forget the names, offhand).
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Preludian
Regular
Posts: 81
Joined: Wed Nov 05, 2008 9:10 am
Contact:

Re: flashing dialogue window with sprite dissolve

#5 Post by Preludian »

Works like a charm, thanks very much.

Do you know of a way how to add transitions to side images?

EvilDragon
Veteran
Posts: 284
Joined: Fri Dec 28, 2007 5:47 am
Location: Where the Dragons rule!
Contact:

Re: flashing dialogue window with sprite dissolve

#6 Post by EvilDragon »

What do you mean by "side images"?
Angels of paradise, angels of sacrifice
Please let me be under your wings...

Preludian
Regular
Posts: 81
Joined: Wed Nov 05, 2008 9:10 am
Contact:

Re: flashing dialogue window with sprite dissolve

#7 Post by Preludian »

EvilDragon wrote:What do you mean by "side images"?
The little images inside the window, also called Avatars I think.

Image

kag_kins
Newbie
Posts: 24
Joined: Thu Dec 11, 2008 6:01 pm
Contact:

Re: flashing dialogue window with sprite dissolve

#8 Post by kag_kins »

PyTom, do you think you could look up the config variables? I'm not sure where you're supposed to put the code you posted, and it'd be cumbersome to use with every image anyway.

There was a section on showing and hiding the window in the cookbook, but I couldn't get the transitions to work right.

Thanks in advance!

User avatar
PyTom
Ren'Py Creator
Posts: 16093
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: flashing dialogue window with sprite dissolve

#9 Post by PyTom »

They are config.window_show_transition and config.window_hide_transition.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

kag_kins
Newbie
Posts: 24
Joined: Thu Dec 11, 2008 6:01 pm
Contact:

Re: flashing dialogue window with sprite dissolve

#10 Post by kag_kins »

Er, I got an error message saying that 'config.window_show_transition is not a known configuration variable.'

I'm using Renpy 6.8- is this a really new variable, or something?

User avatar
PyTom
Ren'Py Creator
Posts: 16093
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: flashing dialogue window with sprite dissolve

#11 Post by PyTom »

Yes, this was added in 6.9.1.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

kag_kins
Newbie
Posts: 24
Joined: Thu Dec 11, 2008 6:01 pm
Contact:

Re: flashing dialogue window with sprite dissolve

#12 Post by kag_kins »

Ah. Off to go download, then...

Post Reply

Who is online

Users browsing this forum: No registered users