As of now, the "Quit Game" just exits the game without prompting "Yes" or "No" for quitting. I want to know if I can make it prompt like it does from inside the "Continue Game" screen.
Right now, I have "Quit Game" point to my own label that uses an imagemap to prompt the exit.
Also, when I say "No" on the "Continue Game" screen exit prompt, it takes me back to the game instead of the "Continue Game" screen. Is there any way to "correct" this?
Can I have "Quit Game", on the Main Menu, prompt?
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.
- PyTom
- Ren'Py Creator
- Posts: 16096
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
- Contact:
Re: Can I have "Quit Game", on the Main Menu, prom
If you change library.main_menu to point to _confirm_quit rather than _quit, it should work.Tage wrote:As of now, the "Quit Game" just exits the game without prompting "Yes" or "No" for quitting. I want to know if I can make it prompt like it does from inside the "Continue Game" screen.
Not really. The problem is, Ren'Py doesn't keep a memory of how you got to quit. If you think of "Load", "Save", "Preferences" and "Quit" as tabs in a more normal application, you can sort of get how this works.Also, when I say "No" on the "Continue Game" screen exit prompt, it takes me back to the game instead of the "Continue Game" screen. Is there any way to "correct" this?
- PyTom
- Ren'Py Creator
- Posts: 16096
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
- Contact:
And, in retrospect, I can see why both close the program. You really need to make it something like:
Otherwise, even if you don't confirm the quit, you fall of the edge of the world, and Ren'Py automatically closes in that case.
--
Finishing up the documentation for 4.3.
Code: Select all
label confirm_quit:
call _confirm_quit
jump main_menu
--
Finishing up the documentation for 4.3.
Who is online
Users browsing this forum: No registered users