My game currently has 2 "main menus", one ingame, that you access through a button, in the main novel screen, and another one that is the one shown at the beginning of the game. I want to make a button inside the first menu (the ingame one), to return to the second main menu (the one at the start), but I don't know how to do that. I've tried various Calls and ShowMenus but none seem to work. Call "start", "main_menu" and "renpy.full_restart" result in a crash that says that can't find those labels. Any ideas?
Also, using Return() closes the ingame menu and returns me to the normal novel screen.
Thanks in advance.
Edit: Apparently I can't read and there is a function called MainMenu() that I didn't see in the documentation *facepalm*
How can I make a button to return to the main menu
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.
- namastaii
- Eileen-Class Veteran
- Posts: 1350
- Joined: Mon Feb 02, 2015 8:35 pm
- Projects: Template Maker for Ren'Py, What Life
- Github: lunalucid
- Skype: Discord: lunalucid#1991
- Soundcloud: LunaLucidMusic
- itch: lunalucid
- Location: USA
- Contact:
Re: How can I make a button to return to the main menu
Ah yeah, might want to prompt player to save before returning to menu too
- Karrion
- Regular
- Posts: 68
- Joined: Fri Jan 18, 2019 8:33 pm
- Projects: Murder on the Marine Express
- Organization: 1564 Studio
- itch: 1564-studio
- Contact:
Re: How can I make a button to return to the main menu
The MainMenu() function also covers that, thankfully.
- namastaii
- Eileen-Class Veteran
- Posts: 1350
- Joined: Mon Feb 02, 2015 8:35 pm
- Projects: Template Maker for Ren'Py, What Life
- Github: lunalucid
- Skype: Discord: lunalucid#1991
- Soundcloud: LunaLucidMusic
- itch: lunalucid
- Location: USA
- Contact:
Re: How can I make a button to return to the main menu
Oh, good to know. Wasn't sure.
Who is online
Users browsing this forum: Google [Bot]

