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.
I have an imagebutton which when clicked I would like to have it call a screen. No I do not want to show the screen. I want to call it, just the same as I can do from a label
Ocelot wrote: ↑Thu Jan 20, 2022 3:05 am
You can use Function]/c] screen action with call_screen function. Just make sure that screen from which you are calling it is not called itself.
Unfortunately the one thing I cannot do is the one thing that I wanted to do. The inability to recursively call the same screen over and over is actually quite limiting. I did find another solution as a work around, though it is far less elegant than what I originally intended. Regardless, thank you for the response.
Technocally because call screen is a misnomer. Correctly it should be called firce interaction with screen. Call screen is essentually sequence of show screen, renpy.interact() and hide screen.