Say screen what 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
fullmontis
Regular
Posts: 129
Joined: Sun May 05, 2013 8:03 am
Deviantart: fullmontis
itch: fullmontis
Location: Italy
Contact:

Say screen what transition?

#1 Post by fullmontis »

Is it possible to change the transition of the content of the say window (the "what")? I am not talking about when the screen appears or disappears, but when the text is changed, like when the mouse is clicked to progress the story. I would like it to dissolve between lines.

I tried this but does not seem to work:

Code: Select all

screen say(who, what):
    style_prefix "say"

    window:
        id "window"

        if who is not None:

            window:
                id "namebox"
                style "namebox"
                text who id "who" 

        text what at what_transf id "what" 

transform what_transf:
    on show:
        alpha 0.0
        linear 0.3 alpha 1.0
    on hide:
        linear 0.3 alpha 0.0

User avatar
Kia
Eileen-Class Veteran
Posts: 1040
Joined: Fri Aug 01, 2014 7:49 am
Deviantart: KiaAzad
Discord: Kia#6810
Contact:

Re: Say screen what transition?

#2 Post by Kia »

try:

Code: Select all

    window:
        id "window"
        at what_transf
        ...
but I should warn you, too much transitions can become extremely annoying very fast, I suggest using CPS instead

User avatar
Kinmoku
Miko-Class Veteran
Posts: 591
Joined: Mon Aug 11, 2014 9:39 am
Completed: One Night Stand
Projects: VIDEOVERSE
Tumblr: gamesbykinmoku
itch: kinmoku
Location: Germany
Contact:

Re: Say screen what transition?

#3 Post by Kinmoku »

I can confirm that the effects can get annoying quite quickly... Is there a way to toggle them so they only show up when asked? For example, at the start of a new scene?

Also, I have a similar effect in my game which replays the transition when a wait {w=1} is used. Is there a way to stop it from doing this?

User avatar
Kia
Eileen-Class Veteran
Posts: 1040
Joined: Fri Aug 01, 2014 7:49 am
Deviantart: KiaAzad
Discord: Kia#6810
Contact:

Re: Say screen what transition?

#4 Post by Kia »

you can make a screen with the animation and play that animation whenever you want by showing the screen manually, I've searched for a long time and there's no simple solution to it

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3791
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Say screen what transition?

#5 Post by Imperf3kt »

You can fake it. Show the textbox and text as an image and dissolve in when necessary.
Remember to hide the real say window first.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

User avatar
Kinmoku
Miko-Class Veteran
Posts: 591
Joined: Mon Aug 11, 2014 9:39 am
Completed: One Night Stand
Projects: VIDEOVERSE
Tumblr: gamesbykinmoku
itch: kinmoku
Location: Germany
Contact:

Re: Say screen what transition?

#6 Post by Kinmoku »

Imperf3kt wrote: Tue Aug 14, 2018 7:40 pm You can fake it. Show the textbox and text as an image and dissolve in when necessary.
Remember to hide the real say window first.
I like this sneaky tactic, haha! :wink:

Post Reply

Who is online

Users browsing this forum: No registered users