[SOLVED]Making dissolve default window show/hide 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
DollhouseRose
Regular
Posts: 63
Joined: Tue Aug 27, 2019 2:36 pm
Completed: Graveyard Girls & Starlight Shores
Projects: Graveyard Girls & Starlight Shores
Organization: Delphinium Interactive
itch: tidalblossoms
Location: Canada
Contact:

[SOLVED]Making dissolve default window show/hide transition

#1 Post by DollhouseRose »

So far, I have always been using "window show dissolve" and "window hide dissolve" during conversations in my game. Is there an easier way to do this, and make dissolve the permanent transition whenever a window/textbox is shown? My code currently looks like this:

Code: Select all

window show dissolve
cen "A beautiful girl is minding the store, she smiles as you enter."
window hide dissolve
However, I'd like to just have these transitions automated, so my code would look like this:

Code: Select all

cen "A beautiful girl is minding the store, she smiles as you enter"
Any advice? I've tried looking in options.rpy but I've had no luck.
Last edited by DollhouseRose on Wed Sep 18, 2019 1:34 pm, edited 1 time in total.

rayminator
Miko-Class Veteran
Posts: 793
Joined: Fri Feb 09, 2018 12:05 am
Location: Canada
Contact:

Re: Making dissolve default window show/hide transition

#2 Post by rayminator »

i am having the same problem as you are

it is in option on mine it's on line 188

Code: Select all

define config.window = "auto"


## Transitions used to show and hide the dialogue window

define config.window_show_transition = Dissolve(.0)
define config.window_hide_transition = Dissolve(.0)

User avatar
hell_oh_world
Miko-Class Veteran
Posts: 777
Joined: Fri Jul 12, 2019 5:21 am
Contact:

Re: Making dissolve default window show/hide transition

#3 Post by hell_oh_world »

DollhouseRose wrote: Mon Sep 09, 2019 4:52 pm So far, I have always been using "window show dissolve" and "window hide dissolve" during conversations in my game. Is there an easier way to do this, and make dissolve the permanent transition whenever a window/textbox is shown? My code currently looks like this:

Code: Select all

window show dissolve
cen "A beautiful girl is minding the store, she smiles as you enter."
window hide dissolve
However, I'd like to just have these transitions automated, so my code would look like this:

Code: Select all

cen "A beautiful girl is minding the store, she smiles as you enter"
Any advice? I've tried looking in options.rpy but I've had no luck.
You could also try to use scene statement. Assuming that you haven't changed the config variable window, using it will automatically hide the dialogue box, until the next scene.

Code: Select all

label start:
	cen "A beautiful girl is minding the store, she smiles as you enter."
	scene img_girl_entering
	
	## Use pause here to wait for an interaction or click from the user before showing the next dialogue.
	## Ex.. pause
	## It can also take a floating number which automatically shows the dialogue box after that specified seconds..
	## Ex.. pause 2.0
	
	cen "Another dialogue...."
	
This works well if your image are not some sort of sprites.

User avatar
DollhouseRose
Regular
Posts: 63
Joined: Tue Aug 27, 2019 2:36 pm
Completed: Graveyard Girls & Starlight Shores
Projects: Graveyard Girls & Starlight Shores
Organization: Delphinium Interactive
itch: tidalblossoms
Location: Canada
Contact:

Re: Making dissolve default window show/hide transition

#4 Post by DollhouseRose »

rayminator wrote: Mon Sep 09, 2019 7:24 pm i am having the same problem as you are

it is in option on mine it's on line 188

Code: Select all

define config.window = "auto"


## Transitions used to show and hide the dialogue window

define config.window_show_transition = Dissolve(.0)
define config.window_hide_transition = Dissolve(.0)
I tried adjusting this setting and it only adjusted the dissolve time when I used the window show/hide commands. It unfortunately did not change the automatic transition which is just the textbox popping up/disappearing with no dissolve transition.

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: Making dissolve default window show/hide transition

#5 Post by isobellesophia »

DollhouseRose wrote: Wed Sep 11, 2019 4:50 pm
rayminator wrote: Mon Sep 09, 2019 7:24 pm i am having the same problem as you are

it is in option on mine it's on line 188

Code: Select all

define config.window = "auto"


## Transitions used to show and hide the dialogue window

define config.window_show_transition = Dissolve(.0)
define config.window_hide_transition = Dissolve(.0)
I tried adjusting this setting and it only adjusted the dissolve time when I used the window show/hide commands. It unfortunately did not change the automatic transition which is just the textbox popping up/disappearing with no dissolve transition.
How about

Code: Select all

label something:
    window show with dissolve
    g "Hello!"
I am a friendly user, please respect and have a good day.


Image

Image


rayminator
Miko-Class Veteran
Posts: 793
Joined: Fri Feb 09, 2018 12:05 am
Location: Canada
Contact:

Re: Making dissolve default window show/hide transition

#6 Post by rayminator »

isobellesophia wrote: Wed Sep 11, 2019 8:16 pm
DollhouseRose wrote: Wed Sep 11, 2019 4:50 pm
rayminator wrote: Mon Sep 09, 2019 7:24 pm i am having the same problem as you are

it is in option on mine it's on line 188

Code: Select all

define config.window = "auto"


## Transitions used to show and hide the dialogue window

define config.window_show_transition = Dissolve(.0)
define config.window_hide_transition = Dissolve(.0)
I tried adjusting this setting and it only adjusted the dissolve time when I used the window show/hide commands. It unfortunately did not change the automatic transition which is just the textbox popping up/disappearing with no dissolve transition.
How about

Code: Select all

label something:
    window show with dissolve
    g "Hello!"
done that and nothing it still does the same thing the textbox disappears when a new image appears

Edit:

I figure it out by greying that part out in option by using # to grey it out

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: Making dissolve default window show/hide transition

#7 Post by isobellesophia »

Woops, i didnt know that was already posted,

how about..

Code: Select all

window auto
Because people used this alot.
I am a friendly user, please respect and have a good day.


Image

Image


User avatar
DollhouseRose
Regular
Posts: 63
Joined: Tue Aug 27, 2019 2:36 pm
Completed: Graveyard Girls & Starlight Shores
Projects: Graveyard Girls & Starlight Shores
Organization: Delphinium Interactive
itch: tidalblossoms
Location: Canada
Contact:

Re: Making dissolve default window show/hide transition

#8 Post by DollhouseRose »

isobellesophia wrote: Wed Sep 11, 2019 11:33 pm Woops, i didnt know that was already posted,

how about..

Code: Select all

window auto
Because people used this alot.
I feel like I should've explained myself better. When I use window auto (and don't manually call window show/hide), I would like it to default to the "dissolve" transition when hiding/showing a window, instead of it just showing and hiding without a transition. So far, I've had to meticulously use window show/hide "with dissolve" to achieve this. I would like to know how to make dissolve the default transition when window auto is enabled.

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: Making dissolve default window show/hide transition

#9 Post by isobellesophia »

DollhouseRose wrote: Thu Sep 12, 2019 12:28 pm
isobellesophia wrote: Wed Sep 11, 2019 11:33 pm Woops, i didnt know that was already posted,

how about..

Code: Select all

window auto
Because people used this alot.
I feel like I should've explained myself better. When I use window auto (and don't manually call window show/hide), I would like it to default to the "dissolve" transition when hiding/showing a window, instead of it just showing and hiding without a transition. So far, I've had to meticulously use window show/hide "with dissolve" to achieve this. I would like to know how to make dissolve the default transition when window auto is enabled.

Then how about viewtopic.php?p=310555#p310555
viewtopic.php?t=41776#p438420
I am a friendly user, please respect and have a good day.


Image

Image


User avatar
DollhouseRose
Regular
Posts: 63
Joined: Tue Aug 27, 2019 2:36 pm
Completed: Graveyard Girls & Starlight Shores
Projects: Graveyard Girls & Starlight Shores
Organization: Delphinium Interactive
itch: tidalblossoms
Location: Canada
Contact:

Re: Making dissolve default window show/hide transition

#10 Post by DollhouseRose »

isobellesophia wrote: Fri Sep 13, 2019 8:01 am
DollhouseRose wrote: Thu Sep 12, 2019 12:28 pm
isobellesophia wrote: Wed Sep 11, 2019 11:33 pm Woops, i didnt know that was already posted,

how about..

Code: Select all

window auto
Because people used this alot.
I feel like I should've explained myself better. When I use window auto (and don't manually call window show/hide), I would like it to default to the "dissolve" transition when hiding/showing a window, instead of it just showing and hiding without a transition. So far, I've had to meticulously use window show/hide "with dissolve" to achieve this. I would like to know how to make dissolve the default transition when window auto is enabled.

Then how about viewtopic.php?p=310555#p310555
viewtopic.php?t=41776#p438420
It worked!! I really appreciate your help :) thank you so much!!

Post Reply

Who is online

Users browsing this forum: giorgi1111, Google [Bot]