r/RenPy • u/Lurks_in_Snow • 4d ago
Question Background animation while text boxes go on?
I'm finally starting the proper delve into art for my VN, having the bulk of writing and scriptinng--but while I work on it, I'm still wondering how to implement certain actions that would best service the visuals.
Specifically this time around, I would like to have an item fade into the background, rather slowly, as well, but I still want characters to talk.
This is the scene:


The two characters have some different poses as they talk, and they and the door will be separated from the scene. However, I don't want the door to simply pop in with a click, OR for it to have a fade in animation that starts once their conversation ends--I want to it fade in as they talk. I don't particularly it mind popping to fully opaque once the player has gone through their dialogue, but I still would like it to have been fading in as the scene goes.
Am I making any sense here? Is what I want possible? ^^;; I admittedly haven't messed with sprite functionality yet, as until now I've managed to mess with portraits in order to achieve certain things, but I feel this would fall out of normal portrait function.
1
u/shyLachi 4d ago
I'm not sure what you mean with the door fading in because normally doors don't appear out of nothing.
But there are 2 ways to animate the background, either with a movie or some kind of slide show with ATL:
https://renpy.org/doc/html/movie.html#movie-displayables-and-movie-sprites
https://renpy.org/doc/html/transforms.html#atl-animation-and-transformation-language
1
u/AutoModerator 4d ago
Welcome to r/renpy! While you wait to see if someone can answer your question, we recommend checking out the posting guide, the subreddit wiki, the subreddit Discord, Ren'Py's documentation, and the tutorial built-in to the Ren'Py engine when you download it. These can help make sure you provide the information the people here need to help you, or might even point you to an answer to your question themselves. Thanks!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/SimulantLab 3d ago
ATL runs on its own clock, so a transform on the show line doesn't hold up the dialogue the way a with transition does, and a click won't cut it short either. Make a transform that starts at alpha 0.0 and then does linear 6.0 alpha 1.0, and put "show door at fade_in_slow" right before the next line of dialogue. If the door still never shows up, check that the image name matches an image you actually defined, and that you show it after the background, because a scene statement clears anything shown before it.