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!
How to slowly fade image in over the course of a scene?
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.
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.
- IrinaLazareva
- Veteran
- Posts: 399
- Joined: Wed Jun 08, 2016 1:49 pm
- Projects: Legacy
- Organization: SunShI
- Location: St.Petersburg, Russia
- Contact:
Re: How to slowly fade image in over the course of a scene?
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?
Awesome, thanks!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' '....'
Who is online
Users browsing this forum: Rhapsy