H button only hide text and not 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.
-
- Regular
- Posts: 132
- Joined: Tue Apr 29, 2014 5:37 pm
- Contact:
H button only hide text and not screen
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?
- Ocelot
- Lemma-Class Veteran
- Posts: 2402
- Joined: Tue Aug 23, 2016 10:35 am
- Github: MiiNiPaa
- Discord: MiiNiPaa#4384
- Contact:
Re: H button only hide text and not screen
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
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 > >
-
- Regular
- Posts: 132
- Joined: Tue Apr 29, 2014 5:37 pm
- Contact:
Re: H button only hide text and not screen
Thank you Ocelot, you're the best!
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot]