Hi everyone! I'm taking a Japanese class and we're using Ren'Py for a project. I want to add an end screen to my game. Basically like,
"You finished the game! Do you want to play again?"
With "Yes" and "No" answer options that will take the player to the start of the game (if Yes) or back to the main menu (if No). I've been looking at the tutorials on how to write screens but I'm not very good with coding and the tutorials really lose me. Can anyone explain how to write them and/or give an example?
Thank you!
I'm not sure why, but the code is working properly now and no error messages showed up. Thanks for your help!
How to add an "End Game/Play Again?" screen? (SOLVED)
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.
How to add an "End Game/Play Again?" screen? (SOLVED)
Last edited by alb9137 on Thu Nov 26, 2015 5:54 pm, edited 1 time in total.
- 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: How to add an "End Game/Play Again?" screen?
if a menu would be enough:
Code: Select all
menu:
"Would you like to play again?"
"Yes":
jump start
"No":
return
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
Re: How to add an "End Game/Play Again?" screen?
I tried that but I kept getting error messages.PyTom wrote:if a menu would be enough:
Code: Select all
menu: "Would you like to play again?" "Yes": jump start "No": return
- Donmai
- Eileen-Class Veteran
- Posts: 1960
- Joined: Sun Jun 10, 2012 1:45 am
- Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
- Projects: Slumberland
- Location: Brazil
- Contact:
Re: How to add an "End Game/Play Again?" screen?
What error message are you getting? Also, showing us your code will surely help.
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)
TOIRE NO HANAKO (A Story About Fear)
Who is online
Users browsing this forum: No registered users