[Solved] Show/call screen with fade and time?

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
nanashine
Regular
Posts: 129
Joined: Thu Nov 30, 2017 1:44 pm
itch: renpytom
Contact:

[Solved] Show/call screen with fade and time?

#1 Post by nanashine »

In this case:

Code: Select all

label park1:
    
    scene parkday
    call screen foodlist
How can I use a fadein effect with "call screen". Also, I wanted to tell the time of the fade. I wanted it to show up a little slower.

Everything I try either give me an error message or doesn't change anything :oops: :lol:

Thanks.
Last edited by nanashine on Mon Mar 25, 2019 5:13 pm, edited 1 time in total.
I can't access my other account cause I don't remember the e-mail I used *cries in emoji*.

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

Re: Show/call screen with fade and time?

#2 Post by Imperf3kt »

There are two ways to use fade.
Fade, and fade.
Screens need to use Fade.

https://www.renpy.org/doc/html/transitions.html#Fade
Dissolve works the same way.
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
Matalla
Veteran
Posts: 202
Joined: Wed Mar 06, 2019 6:22 pm
Completed: Max Power and the Egyptian Beetle Case, The Candidate, The Last Hope, El cajón del viejo escritorio, Clementina y la luna roja, Caught in Orbit, Dirty Business Ep 0, Medianoche de nuevo, The Lost Smile
itch: matalla-interactive
Location: Spain
Contact:

Re: Show/call screen with fade and time?

#3 Post by Matalla »

Probably there are better ways, but if the screen is not very complex, you could define the transform you want before and, inside the screen, show the displayable(s) at said transform. I use this to show animated bars for timed events and very interactive scenes, but it should work with any displayable

Code: Select all

transform alpha_fade:
    alpha 0.0
    linear 0.5 alpha 1.0 # The linear value controls the time
    on hide:
        linear 0.5 alpha 0

screen foodlist():
    add "banana.png" at alpha_fade

label park1:
    scene parkday
    call screen foodlist
Comunidad Ren'Py en español (Discord)
Honest Critique

nanashine
Regular
Posts: 129
Joined: Thu Nov 30, 2017 1:44 pm
itch: renpytom
Contact:

Re: Show/call screen with fade and time?

#4 Post by nanashine »

Imperf3kt wrote: Sun Mar 24, 2019 8:09 pm There are two ways to use fade.
Fade, and fade.
Screens need to use Fade.

https://www.renpy.org/doc/html/transitions.html#Fade
Dissolve works the same way.
I saw that there were two differents types, fade and Fade. But I never really gave it much attention. I'll read it.
Thank you :)
I can't access my other account cause I don't remember the e-mail I used *cries in emoji*.

nanashine
Regular
Posts: 129
Joined: Thu Nov 30, 2017 1:44 pm
itch: renpytom
Contact:

Re: Show/call screen with fade and time?

#5 Post by nanashine »

Matalla wrote: Sun Mar 24, 2019 8:12 pm Probably there are better ways, but if the screen is not very complex, you could define the transform you want before and, inside the screen, show the displayable(s) at said transform. I use this to show animated bars for timed events and very interactive scenes, but it should work with any displayable

Code: Select all

transform alpha_fade:
    alpha 0.0
    linear 0.5 alpha 1.0 # The linear value controls the time
    on hide:
        linear 0.5 alpha 0

screen foodlist():
    add "banana.png" at alpha_fade

label park1:
    scene parkday
    call screen foodlist
Thank you so much! It worked :)
I can't access my other account cause I don't remember the e-mail I used *cries in emoji*.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot]