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 want to add a character selection screen in the game but I'm having problems jumping to it. Does anyone know what action to put in script.rpy in order to jump to a screen in the middle of the game?
I've already made a character selection screen in screens.rpy, but I can't find the right syntax in order to pull up the menu mid-game
Last edited by lacrimoosa on Mon Dec 10, 2018 11:27 pm, edited 1 time in total.
An artist/writer/programmer working to get mine and my partner's ideas out into the world through Red & Pink Games!
"Oh geez, looks like the code just broke."
Thank you, call does work the way I want it to! Is there a way to hide the screen with a transition statement once you use call? I had brought the screen up using "say" for a while and figured how to show and hide it with a transition, but I'm having trouble doing the same using "call"
This was my extreme workaround with say, but it is the only way I can get the dissolve
scene black with Dissolve(1.0)
$ renpy.pause(3.0)
show screen select
$ show_quick_menu = True
$renpy.pause(3600.0)
$ renpy.transition(dissolve)
label wendy:
$ show_quick_menu = False
$ renpy.transition(dissolve)
hide screen select
scene black
An artist/writer/programmer working to get mine and my partner's ideas out into the world through Red & Pink Games!
"Oh geez, looks like the code just broke."
If you give your screen an action that returns a _Return, the scren will automatically close itself, which is why I mentioned it depends on your screen.
This is just something I've read in the documentation/forums. I haven't actually ecperimented with it myself, so am unable to guide you in it.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Thank you for your help. Unfortunately, the action the screen does is purely start different routes, so I can't use the call statement I guess?
I'll be sure to remember it for the future though!
An artist/writer/programmer working to get mine and my partner's ideas out into the world through Red & Pink Games!
"Oh geez, looks like the code just broke."
Sorry for the long-overdue response, but adding Hide("screen name) did end up working! To get the dissolve to work though, I still had to do a small workaround of adding a renpy.transition before and after showing the screen. The end result was this:
$ renpy.transition(dissolve)
show screen select
$ renpy.transition(dissolve)
Thank you for your help on this issue!
An artist/writer/programmer working to get mine and my partner's ideas out into the world through Red & Pink Games!
"Oh geez, looks like the code just broke."