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.
#1: How can I make the images disappear when a different menu screen comes up? (ex: choosing the settings button and all images disappear until return is clicked)
Code (edited screens.rpy):
m_from_space wrote: ↑Fri Dec 08, 2023 6:34 am
#1: I don't know what you mean by "the images", but when you give a (main menu) screen the tag "menu", other screens with the same tag will hide.
#2: Isn't the main menu (screen) the screen that shows all the other menu options (like settings, help etc.)? What am I missing or what do you mean?
1. The images are the image buttons.
2. Yes, I'm talking about the main menu screen. I'm trying to put a button to go to a different screen to show the other options, since the image buttons take up most of the regular main menu (start, settings and achievements are the image buttons). I would do it simply by putting another screen in the code or something if it didn't give me an error which is my main problem, really, because I know all that I have to do I just don't know how to execute it
StormyThunder wrote: ↑Fri Dec 08, 2023 4:51 pm
I've decided to do a less complicated idea, but I really do appreciate your response
How would I hide the image buttons after another screen shows up and make them reappear when I back out to the main menu again?
You probably have to explain your new idea, otherwise I cannot follow what you want to achieve.
The current buttons are part of the screen "navigation" inside <screens.rpy>. They are included by both the "main_menu" screen and the "game_menu" screen. The latter is a kind of template for any menu screen that's not the main_menu (like preferences, help etc.)
If you don't want navigation buttons in a game_menu screen, or not in the main_menu, just remove the following line:
screen main_menu():
tag menu
# ...
use navigation # <-- this incorporates the navigation button screen
screen game_menu(title, scroll=None):
# ...
use navigation # <-- this incorporates the navigation button screen
I don't need help with my new idea, I'll just add smaller buttons to the title screen and figure it out like that, but thank you :)
Taking that line out worked, thank you very much :)