How to show the textbox while scene is dissolving [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
User avatar
beastcarving
Regular
Posts: 139
Joined: Mon May 13, 2019 5:03 pm
Completed: Pulse Cage https://beastcarving.itch.io/pulse-cage-the-full-series
Projects: Your Brother's Religion
Organization: BeastCarving Studio
IRC Nick: BeastCarving
Tumblr: beastcarving
Deviantart: beastcarving
Github: beastcarving
itch: beastcarving
Contact:

How to show the textbox while scene is dissolving [SOLVED]

#1 Post by beastcarving » Fri Nov 06, 2020 9:04 pm

I want the story to advance while the scene is dissolving. When the scene dissolves the textbox will either be empty until the scene is done dissolving or not show up at all. How do I make so the text box advances while the transition is happening.

Code: Select all

show lunchroom with superslowdissolve
Last edited by beastcarving on Sun Nov 08, 2020 5:58 am, edited 1 time in total.
Image Pulse Cage (full game)Image Your Brother's Religion (Demo)
PLAY HERE: https://beastcarving.itch.io/
Love my work: https://www.patreon.com/beastcarving

User avatar
_ticlock_
Veteran
Posts: 391
Joined: Mon Oct 26, 2020 5:41 pm
Contact:

Re: How to show the textbox while scene is dissolving [HELP]

#2 Post by _ticlock_ » Fri Nov 06, 2020 10:36 pm

Hi, beastcarving,

For example, you can use transform:

Code: Select all

transform slowdissolve:
    on hide:
        alpha 1.0
        easein 10.0 alpha 0.0   # 10 second dissolve
        
label start:
    show lunchroom at slowdissolve
    e "lunchroom is shown"
    hide lunchroom
    e "lunchroom is hiding"
    e "lunchroom might be still hiding"

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: How to show the textbox while scene is dissolving [HELP]

#3 Post by hell_oh_world » Sat Nov 07, 2020 2:07 am

If I remember correctly, the with statement requires causes an interaction. The game will wait until a transition is finished before proceeding onto the next line of code. So yeah transforms should fix this I guess.
https://patreon.renpy.org/interaction.h ... ion-happen

User avatar
beastcarving
Regular
Posts: 139
Joined: Mon May 13, 2019 5:03 pm
Completed: Pulse Cage https://beastcarving.itch.io/pulse-cage-the-full-series
Projects: Your Brother's Religion
Organization: BeastCarving Studio
IRC Nick: BeastCarving
Tumblr: beastcarving
Deviantart: beastcarving
Github: beastcarving
itch: beastcarving
Contact:

Re: How to show the textbox while scene is dissolving [HELP]

#4 Post by beastcarving » Sun Nov 08, 2020 5:58 am

I worked! Thanks
Image Pulse Cage (full game)Image Your Brother's Religion (Demo)
PLAY HERE: https://beastcarving.itch.io/
Love my work: https://www.patreon.com/beastcarving

Post Reply

Who is online

Users browsing this forum: No registered users