[Solved] Calling more than one screen

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.
Post Reply
Message
Author
Doeny
Regular
Posts: 26
Joined: Wed Sep 07, 2022 8:28 pm
Contact:

[Solved] Calling more than one screen

#1 Post by Doeny » Mon Oct 03, 2022 5:22 pm

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.

User avatar
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

#2 Post by Ocelot » Mon Oct 03, 2022 6:25 pm

In short, no. call screen some_screen in reality is just roughly:

Code: Select all

show screen some_screen(_transient=True)
$ ui.interact()
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.
< < insert Rick Cook quote here > >

Doeny
Regular
Posts: 26
Joined: Wed Sep 07, 2022 8:28 pm
Contact:

Re: Calling more than one screen

#3 Post by Doeny » Mon Oct 03, 2022 7:37 pm

Ocelot wrote:
Mon Oct 03, 2022 6:25 pm
In short, no. call screen some_screen in reality is just roughly:

Code: Select all

show screen some_screen(_transient=True)
$ ui.interact()
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.
Alright, thanks

Post Reply

Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot]