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.
Is it possible to make call screen respect the on hide of a transform?
I have a transform with an on hide statement that my UI elements use. However it doesn't fire the on hide event when I use call screen to bring up the screen, only on a show screen and a subsequent hide screen.
hide
Triggered when the transform is hidden using the hide statement or its Python equivalent.
Note that this isn't triggered when the transform is eliminated via the scene statement or exiting the context it exists in, such as when exiting the game menu.
When the action is taken that would return from the screen, you could use an array of actions, hiding the screen first, then returning. I use this as a way of having “called” screens disappear with a transition, since you can pass a transition to the Hide.