[SOLVED] How to call 2 screens at once?

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
User avatar
Kinmoku
Miko-Class Veteran
Posts: 560
Joined: Mon Aug 11, 2014 9:39 am
Completed: One Night Stand
Projects: Love IRL, Memories
Tumblr: gamesbykinmoku
itch: kinmoku
Location: Germany
Contact:

[SOLVED] How to call 2 screens at once?

#1 Post by Kinmoku » Fri Sep 30, 2016 7:08 am

Hi all,

I have 2 screens (split up, as sometimes only one appears) and I want to call them from the game.

I call them from the main menu like this:

Code: Select all

action [ShowMenu("gallerybg"), ShowMenu("gallerypopup")]
However, I don't know how to call both of these from the game. Whenever I try and add "gallerypopup" it doesn't work.

This is what I have so far...

Code: Select all

    call screen gallerybg
    with dissolve
I wish it was as easy as "call screen gallerybg and gallerypopup" XD

If "gallerybg" wasn't a huge screen (around 800 lines of code) I'd just copy and paste both of these to form a new screen, but that seems like I'm missing something obvious.
Last edited by Kinmoku on Fri Sep 30, 2016 9:00 am, edited 1 time in total.

User avatar
Ocelot
Eileen-Class Veteran
Posts: 1883
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: How to call 2 screens at once?

#2 Post by Ocelot » Fri Sep 30, 2016 8:11 am

Did you try

Code: Select all

show screen gallerybg
show screen gallerypopup
#or call screen gallerypopup
< < insert Rick Cook quote here > >

User avatar
Kinmoku
Miko-Class Veteran
Posts: 560
Joined: Mon Aug 11, 2014 9:39 am
Completed: One Night Stand
Projects: Love IRL, Memories
Tumblr: gamesbykinmoku
itch: kinmoku
Location: Germany
Contact:

Re: How to call 2 screens at once?

#3 Post by Kinmoku » Fri Sep 30, 2016 9:00 am

Ocelot wrote:Did you try

Code: Select all

show screen gallerybg
show screen gallerypopup
#or call screen gallerypopup
Showing both didn't work as they'd fade out and return BUT this has worked:

Code: Select all

    show screen gallerybg
    call screen gallerypopup
Thank you for your help :D

Post Reply

Who is online

Users browsing this forum: Bing [Bot]