Making a dialogue appear instantly despite the screen having 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
hell_oh_world
Miko-Class Veteran
Posts: 777
Joined: Fri Jul 12, 2019 5:21 am
Projects: The Button Man
Organization: NILA
Github: hell-oh-world
Location: Philippines
Contact:

Making a dialogue appear instantly despite the screen having transition?

#1 Post by hell_oh_world » Wed Jul 17, 2019 11:27 pm

I'm quite frustrated right now... I can't achieve the effect I'm aiming for.

So I have menu:

Code: Select all

menu:
        "Man" "You've created a new Ren'Py game."

        "C1":
            "Hello"
        "C2":
            pass
        "C3":
            pass
        "C4":
            pass
         with dissolve
As you can see I used a with clause inside the menu... also there's a caption inside the menu. But I only want the choices to appear dissolving not the caption itself. I want the caption to appear instantly while the choices will take time and dissolve before appearing.

In addition, after choosing a choice the next say statements should also appear instantly while the menu of choices will still dissolve after choosing an option. I tried to modify the say() screen in the screens.rpy because I thought that screen controls how the choices are displayed. I tried to add an additional action which is the Hide() function. I did include a dissolve transition inside that function, but the dialogue seems to also dissolve after choosing the option. I just want the choices to dissolve out after picking a choice, I don't want the next say statements to appear dissolving after choosing.

I mean, is what I want even possible? I'm new to Ren'Py btw, so please bear with me If I'm making myself stupid with this kind of question...

User avatar
Angelo Seraphim
Regular
Posts: 32
Joined: Tue May 21, 2019 8:00 am
Completed: Enamored Risks (NaNoReNo 2020)
Projects: 616 Charagma
Organization: GLSUoA
Deviantart: glsuoa
itch: glsuoa
Location: London, UK
Discord: Just A Concept#9599
Contact:

Re: Making a dialogue appear instantly despite the screen having transition?

#2 Post by Angelo Seraphim » Thu Jul 18, 2019 4:02 am

Maybe this is what you are looking for?
This will only affect the menu choices and not anything else.

Code: Select all

screen choice(items):
    style_prefix "choice"

    vbox:
        at custom_dissolve # <<-- Your transform here
        for i in items:
            textbutton i.caption action i.action
            
define config.narrator_menu = True

transform custom_dissolve: # <<-- A custom transform for choice menu
    on show:
        alpha 0.0
        easein 0.5 alpha 1.0

    on hide:
        alpha 1.0
        easeout 0.5 alpha 0.0
Hope this helps.
Image

User avatar
hell_oh_world
Miko-Class Veteran
Posts: 777
Joined: Fri Jul 12, 2019 5:21 am
Projects: The Button Man
Organization: NILA
Github: hell-oh-world
Location: Philippines
Contact:

Re: Making a dialogue appear instantly despite the screen having transition?

#3 Post by hell_oh_world » Thu Jul 18, 2019 5:05 am

Angelo Seraphim wrote:
Thu Jul 18, 2019 4:02 am
Maybe this is what you are looking for?
This will only affect the menu choices and not anything else.

Code: Select all

screen choice(items):
    style_prefix "choice"

    vbox:
        at custom_dissolve # <<-- Your transform here
        for i in items:
            textbutton i.caption action i.action
            
define config.narrator_menu = True

transform custom_dissolve: # <<-- A custom transform for choice menu
    on show:
        alpha 0.0
        easein 0.5 alpha 1.0

    on hide:
        alpha 1.0
        easeout 0.5 alpha 0.0
Hope this helps.
I actually tried this one through the use of some ATL.. but yours is quite more comprehensive than my idea... Unfortunately, it doesn't work. The screen just appears instantly with no transition at all... I'm using Frame btw... I modified the container from vbox to Frame... and I just also used at clause on it... Frame at custom_dissolve... etc... But it doesn't work.

Post Reply

Who is online

Users browsing this forum: No registered users