Inspired by some text games I've seen, I was curious if I could customize Ren'Py's UI to have a scrolling NVL window with stylized text boxes. I have something that looks like this so far:
Each new block of text appears below the last, and there's a scrollbar on the right so the player can scroll back once there's more than a screen's worth of text.
To make sure that the text window will automatically scroll to the bottom when new text is added that would otherwise be off the screen, I have this line of code in the window:
Code: Select all
yadjustment ui.adjustment (value=99999, range=99999)My question is: Is there a way to make the scrolling animated, so that it doesn't happen instantaneously? (I'm also curious if I can have a little animation for the blocks of text as they appear, as maybe that would make it a bit easier for the player to follow.)
Second question:
Related to the above; I've also been playing with resizing the text window so that images can occasionally be displayed at the top of the screen, like so: I've found I can do this easily enough by defining...
Code: Select all
ysize text_window_height To make that animated, I assume I'd need some kind of function to change the value over a period of time? I'm not sure the best way to do that in RenPy.