[Solved] Calling more than one screen
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.
[Solved] Calling more than one screen
Hi, I tried creating a screen with imagebutton that calls another screen, however the 2nd screen overrides the 1st one. Is there a way to display two screens at once, without using "show screen" function?
Last edited by Doeny on Mon Oct 03, 2022 7:38 pm, edited 1 time in total.
- Ocelot
- Eileen-Class Veteran
- Posts: 1882
- Joined: Tue Aug 23, 2016 10:35 am
- Github: MiiNiPaa
- Discord: MiiNiPaa#4384
- Contact:
Re: Calling more than one screen
In short, no. call screen some_screen in reality is just roughly:
Transient screens (and everything on transient layer) are automatically hidden after any interaction. That includes running an action as a response to button press. Second screen does not override first one, it is just hidden because interaction have ended.
Code: Select all
show screen some_screen(_transient=True)
$ ui.interact()< < insert Rick Cook quote here > >
Re: Calling more than one screen
Alright, thanksOcelot wrote: ↑Mon Oct 03, 2022 6:25 pmIn short, no. call screen some_screen in reality is just roughly:Transient screens (and everything on transient layer) are automatically hidden after any interaction. That includes running an action as a response to button press. Second screen does not override first one, it is just hidden because interaction have ended.Code: Select all
show screen some_screen(_transient=True) $ ui.interact()
Who is online
Users browsing this forum: Google [Bot], Majestic-12 [Bot]