Applying a transition to "Confirm" screen... [SOLVED]

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
edgebug
Regular
Posts: 41
Joined: Thu Jun 30, 2016 11:44 pm
Contact:

Applying a transition to "Confirm" screen... [SOLVED]

#1 Post by edgebug »

For the life of me, I can't figure this out. It seems like it should be simple.

So, right now, in screens.rpy, I have

Code: Select all

screen confirm(message, yes_action, no_action):
    modal True
    $ renpy.transition(dissolve)
in an effort to make the confirm screen show up with a nice dissolve instead of just suddenly showing up when you try to quit the game. That isn't happening... but it /disappears/ with a nice dissolve when you click 'no'!

So it works halfway. I feel like I'm missing something fundamental. Can you help me out?
Last edited by edgebug on Fri Sep 28, 2018 3:45 pm, edited 1 time in total.

User avatar
timepatches
Regular
Posts: 91
Joined: Sun Aug 14, 2016 1:52 am
Completed: When Aster Falls; Were|House; DemiDato: Monster Dating Show; Grand-Nya
Projects: The Bat-Chelor
Organization: Sad Ghost Studios
Tumblr: sadghoststudios
itch: Sad Ghost Studios
Location: Australia
Contact:

Re: Applying a transition to "Confirm" screen...

#2 Post by timepatches »

I just figured this out myself! You'll want to use a define config setting instead (here's the relevant documentation, define this in your options file and you should be good!)
ImageImage Image

★☆ currently: DEMIDATO RELEASED MARCH 14 \ *°▽°* /
i appreciate honest critique!

User avatar
kostek00
Regular
Posts: 131
Joined: Wed Mar 28, 2018 5:54 pm
Contact:

Re: Applying a transition to "Confirm" screen...

#3 Post by kostek00 »

Remove "$ renpy.transition(dissolve)" from your screen and as timepatches mentioned use in options file

Code: Select all

define config.enter_yesno_transition = dissolve #transition when confirmation screen shows
define config.exit_yesno_transition = dissolve #transition when confirmation screen hides

edgebug
Regular
Posts: 41
Joined: Thu Jun 30, 2016 11:44 pm
Contact:

Re: Applying a transition to "Confirm" screen...

#4 Post by edgebug »

Y'ALL ARE THE BEST. Thank you!

Post Reply

Who is online

Users browsing this forum: No registered users