Page 1 of 1

How to slowly fade image in over the course of a scene?

Posted: Fri Apr 16, 2021 7:29 am
by jwong66
Hi there,

I was wondering if anybody might know how to have an image slowly become visible over the course of a scene. I've got a character doing a lengthy monologue over a black screen, but I'd like the image of this character's face (already created) to gradually become more opaque until it's fully visible at the end. I'm assuming there's a way to do this without having to insert a hundred different JPEGs with one per cent more opaqueness for each line of dialogue.

Would appreciate any help!

Thanks!

Re: How to slowly fade image in over the course of a scene?

Posted: Fri Apr 16, 2021 9:02 am
by IrinaLazareva
https://www.renpy.org/doc/html/atl.html

Code: Select all

image lucy = 'somesprite.png'

transform intro:
    align(.5,1.0)          #  position of image
    alpha .0      
    easein 10 alpha 1.0   # 10 (sec) is time of opaque
    
label start:
    show lucy at intro
    'some text'
    '....'

Re: How to slowly fade image in over the course of a scene?

Posted: Fri Apr 16, 2021 9:42 am
by jwong66
IrinaLazareva wrote:
Fri Apr 16, 2021 9:02 am
https://www.renpy.org/doc/html/atl.html

Code: Select all

image lucy = 'somesprite.png'

transform intro:
    align(.5,1.0)          #  position of image
    alpha .0      
    easein 10 alpha 1.0   # 10 (sec) is time of opaque
    
label start:
    show lucy at intro
    'some text'
    '....'
Awesome, thanks!