How to add an "End Game/Play Again?" screen? (SOLVED)

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.
Post Reply
Message
Author
alb9137
Newbie
Posts: 2
Joined: Fri Nov 20, 2015 10:19 pm
Contact:

How to add an "End Game/Play Again?" screen? (SOLVED)

#1 Post by alb9137 »

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!
Last edited by alb9137 on Thu Nov 26, 2015 5:54 pm, edited 1 time in total.

User avatar
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?

#2 Post by PyTom »

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
Software > Drama • https://www.patreon.com/renpytom

alb9137
Newbie
Posts: 2
Joined: Fri Nov 20, 2015 10:19 pm
Contact:

Re: How to add an "End Game/Play Again?" screen?

#3 Post by alb9137 »

PyTom wrote:if a menu would be enough:

Code: Select all

menu:
    "Would you like to play again?"
    "Yes":
        jump start
    "No":
        return
I tried that but I kept getting error messages.

User avatar
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?

#4 Post by Donmai »

What error message are you getting? Also, showing us your code will surely help.
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

Post Reply

Who is online

Users browsing this forum: No registered users