Including text in transition...screenshots?

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
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.
Post Reply
Message
Author
User avatar
FiliaFlammae
Newbie
Posts: 11
Joined: Thu Oct 04, 2012 12:22 am
Projects: Crossing the Waste, Grim Fables, Wasurenagusa
Organization: Visual Kyouki
Location: West Coast USA
Contact:

Including text in transition...screenshots?

#1 Post by FiliaFlammae » Sat Mar 02, 2013 8:02 pm

As I'm sure we know, by default, the Ren'Py text window is not included in transitions. You can show and hide the window manually, but the text is not preserved. If possible, I'd like to come up with a way to include the text and textbox in a transition as if the whole screen were one big displayable. For instance, wipeleft would not only wipe away the background and sprites, but the textbox along with them. So is there a way to get the text to act like a displayable, and if not, how can I best replicate the effect?

My first idea was to take a screenshot when the text is done displaying (our game is NVL, so it'd be at the end of the page), set the screenshot to a displayable, and use a transition on that displayable to give the illusion that the text is being wiped away. Unfortunately, I'm not sure how to retrieve the filename of the last screenshot made, and since that method would clog up the game folder and make a mess of any future screenshot support anyway, we scrapped it.

Plan B was to turn on autosave as frequently as needed, then use FileScreenshot() to retrieve (as a displayable) the screenshot taken for that save. Unfortunately, these screenshots are apparently already the little thumbnails used in the save/load screens; full-size versions are not stored.

It seems like the only two ways to get screenshots are (1) by pressing s and saving external image files, or (2) using the save system's screenshots. As explained above, neither of these are what we're looking for. Is there something we've missed, or otherwise some other way to wrap up the textbox to use with ATL and such?

Thanks a bunch in advance!
Visual Kyouki
Character Artist, UI Developer

Current projects:
Crossing the Waste

Projects on hold:
Grim Fables
Wasurenagusa

User avatar
PyTom
Ren'Py Creator
Posts: 15893
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Including text in transition...screenshots?

#2 Post by PyTom » Sat Mar 02, 2013 8:46 pm

You might be able to get what you want to happen by setting config.with_none to False. This prevents Ren'Py from removing the window at the end of each interaction - at which point, you might be able to come up with transitions that work for you. (Or maybe not - I'm not sure if this will work with screens.)

In general, this is poorly defined and looks bad. That's because we don't know what the new text will be until after the transition, so you wind up transitioning from a full textbox to an empty one, or something like that.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
FiliaFlammae
Newbie
Posts: 11
Joined: Thu Oct 04, 2012 12:22 am
Projects: Crossing the Waste, Grim Fables, Wasurenagusa
Organization: Visual Kyouki
Location: West Coast USA
Contact:

Re: Including text in transition...screenshots?

#3 Post by FiliaFlammae » Sat Mar 02, 2013 8:53 pm

Thanks a bunch! I'll try your suggestion. We were planning on having it transition to an empty textbox, so that's not a problem. If we can't get what we're looking for I guess we'll think of something else. Thank you again for your help!

EDIT: Ren'Py claims that config.with_none is not a variable. :(
I guess we should stop worrying about this and find a more standard transition that works. But again, thanks anyway!
Visual Kyouki
Character Artist, UI Developer

Current projects:
Crossing the Waste

Projects on hold:
Grim Fables
Wasurenagusa

Post Reply

Who is online

Users browsing this forum: No registered users