Page 1 of 1

How can I set a transition with renpy.hide_screen?

Posted: Mon Sep 13, 2021 4:30 am
by Thailandian
This should be easy but I couldn't find it in the documentation.

With either the hide screen statement or the Hide action, you can set a transition. However, I can't find an equivalent for renpy.hide_screen

As always, any suggestions or information would be most appreciated.

Re: How can I set a transition with renpy.hide_screen?

Posted: Mon Sep 13, 2021 5:29 am
by Remix
Try

renpy.with_statement( transition_name )

just after the hide_screen

Transient screens might not work though (choice etc)

Re: How can I set a transition with renpy.hide_screen?

Posted: Mon Sep 13, 2021 11:58 am
by Thailandian
Thanks Remix. However, that gave the error:
"Exception: Cannot start an interaction in the middle of an interaction, without creating a new context."
I tried inserting: "renpy.restart_interaction()" before or after these 2 lines but that didn't seem to help either.