Show a screen in/on another one

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
HiddenLife
Newbie
Posts: 13
Joined: Wed Sep 09, 2020 8:10 pm
Contact:

Show a screen in/on another one

#1 Post by HiddenLife » Sun Jul 03, 2022 5:20 pm

Here's my riddle: I want to show one screen in/on another one without have to repeat all the code of one of the two.

I explain better: i am making a freeroam and I want that the player can move either with a minimap (screen 1) that remains the same or clicking on the doors or waythrough and, obviously, doing so this second screen change.

I searched online and didn't find neither a way to add one screen on top of another nor include a screen in another without repeating the code.

What I want do is possible?

User avatar
enaielei
Regular
Posts: 114
Joined: Fri Sep 17, 2021 2:09 am
Tumblr: enaielei
Deviantart: enaielei
Github: enaielei
Skype: enaielei
Soundcloud: enaielei
itch: enaielei
Discord: enaielei#7487
Contact:

Re: Show a screen in/on another one

#2 Post by enaielei » Sun Jul 03, 2022 6:11 pm


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

Re: Show a screen in/on another one

#3 Post by Ocelot » Mon Jul 04, 2022 5:57 am

What is your problem here. Frow what you described, you just need two screens displayed at once: a minimap, which does not change much, and current location screen. Both of which will contain spots you can click to move around.
< < insert Rick Cook quote here > >

User avatar
zmook
Veteran
Posts: 421
Joined: Wed Aug 26, 2020 6:44 pm
Contact:

Re: Show a screen in/on another one

#4 Post by zmook » Mon Jul 04, 2022 8:21 am

HiddenLife wrote:
Sun Jul 03, 2022 5:20 pm
I searched online and didn't find neither a way to add one screen on top of another nor include a screen in another without repeating the code.
Is your problem just that you don't know how to show two different screens at the same time?

There are lots of cookbooks for free-roam type structures. Try this?

viewtopic.php?t=42488
colin r
➔ if you're an artist and need a bit of help coding your game, feel free to send me a PM

Post Reply

Who is online

Users browsing this forum: mold.FF