So I've got a "main screen" in the game from which the player can visit various places or call NPCs on the phone and whatnot. This is done using buttons with a Jump() action that jumps to the relevant label for that action.
However, sometimes after the conversation from the label is over, I want the game to simply return to the main screen--but obviously if the label has no code at the end of it telling it to do a specific thing, it will simply continue on to the next label in the script. Is there a way to specify that it should return to the already-called screen without executing anymore code?
EDIT: Since the screen(s) to "return" to are actually still on screen, I guess the question is less "can I return" and more "how do I make the main script simply stop executing like it did when I called the screen to begin with"...
Can I return to a called screen from a label?
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.
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.
Re: Can I return to a called screen from a label?
Just call the screen again.
Code: Select all
label start:
call screen mapscreen # assuming this jumps to label1
label label1:
"blah blah do stuff"
call screen mapscreen
Who is online
Users browsing this forum: Ocelot, piinkpuddiin, snotwurm