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.
My issue is simple,
When I want to call a screen with a Dissolve transition I simply input "Call screen ScreenName with Dissolve(1.0), but at some point in my code I'm calling a screen using the python equivalent of call screen like so:
Misamor98 wrote: ↑Thu Aug 10, 2023 8:36 am
I don't understand why the pair of extra brackets at the end though.
'With' is a screen action, but it can be used outside screen, 'cause it's a function. The difference from the ordinary function is that you need to put screen action's parameters inside brackets and add another pair of empty brackets to tell Ren'Py that it's a function. https://www.renpy.org/doc/html/screen_actions.html
In Ren'Py, when using the renpy.call_screen function to call a screen with a specific transition, you can pass additional arguments, including the trans argument for the transition. In your case, to call the "Overlay" screen with a Dissolve transition, you can modify the code as follows: