H button only hide text and not 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
Exiscoming
Regular
Posts: 132
Joined: Tue Apr 29, 2014 5:37 pm
Contact:

H button only hide text and not screen

#1 Post by Exiscoming »

Right now whenever you press H, you hide the text on screen. However it also hides any screen that might've been called up. Is there a way to have the H button only hide the text?

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

Re: H button only hide text and not screen

#2 Post by Ocelot »

You need to show (or call) your screen on layer different from "screens". You can do it by using semi-hidden _layer keyword argument:
https://www.renpy.org/doc/html/screen_p ... how_screen

Code: Select all

$ renpy.show_screen("my_screen", _layer="master")
# You cannot hide it usual way, so you need to use python again:
$ renpy.hide_screen("my_screen", layer="master") # Notice layer vs _layer
< < insert Rick Cook quote here > >

Exiscoming
Regular
Posts: 132
Joined: Tue Apr 29, 2014 5:37 pm
Contact:

Re: H button only hide text and not screen

#3 Post by Exiscoming »

Thank you Ocelot, you're the best!

Post Reply

Who is online

Users browsing this forum: No registered users