how to close the game after read the story? [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
User avatar
stwkun
Regular
Posts: 82
Joined: Wed Jan 02, 2013 7:57 pm
Organization: Stw Projects
Contact:

how to close the game after read the story? [solved]

#1 Post by stwkun »

When I finish the story I don't want to return to the main menu, instead I want to close the program, How can I do that ?
Last edited by stwkun on Mon Jul 04, 2016 12:01 am, edited 1 time in total.

User avatar
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 to close the game after read the story?

#2 Post by namastaii »

The easiest way is just by clicking the exit button on the top right corner of the window. If you're talking about implementing a specific button into your game you'd use action Quit()

User avatar
stwkun
Regular
Posts: 82
Joined: Wed Jan 02, 2013 7:57 pm
Organization: Stw Projects
Contact:

Re: how to close the game after read the story?

#3 Post by stwkun »

I mean close the game without pressing any button, just finished to read the game and close automatic the game

User avatar
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 to close the game after read the story?

#4 Post by namastaii »

Code: Select all

$ renpy.quit()
Put this after your last line

User avatar
stwkun
Regular
Posts: 82
Joined: Wed Jan 02, 2013 7:57 pm
Organization: Stw Projects
Contact:

Re: how to close the game after read the story?

#5 Post by stwkun »

Thanks a lot
It's what I was looking for :)

Post Reply

Who is online

Users browsing this forum: Google [Bot]