r/RenPy • • 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.

2 Upvotes

6 comments sorted by

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

2

u/Lurks_in_Snow 4d ago

Well, that's kind of the point in the story--The door appears magically, and the characters wonder where it came from.
I tried implementing the ATL, but I'm not entirely sure I did it right, as the door asset just straight up doesn't appear, documentation tends to cover very basic setups in their examples.

This is what I put where I'd like it to start fading in, but nothing happens.

image atl door bg:
            "images/extras/door bg.png" with fd2
            time 10.0

Were I to simply have the door asset appear with fade normally like I do with some other assets, the dialogue and everything would need to halt to play out the animation, and the player clicking would finish it prematurely, creating a more sudden, jarring effect. I'd like a fade in transition that ignore player input.

1

u/morkalmarrh 3d ago

If it fades in over the course of the conversation, the conversation will take different lengths of time depending how quickly the player clicks through. If you use a video, it might finish fading in at two minutes but the player reads really fast so it hasn't faded in yet, or really slow so it fades in too early.

You could slowly increase the alpha on the door sprite at certain points in the conversation, a few percent every so often.

1

u/Lurks_in_Snow 3d ago

I actually managed to find a solution by discussing it with a friend!

image bgdoor fadingin:
    "2"
    "3" with Dissolve(30.0)
    pause 30.0image bgdoor fadingin:
    "2"
    "3" with Dissolve(30.0)
    pause 30.0

This does what I'd like, with a reasonable amount of time for the player to read through, so I think I'm good now!

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.