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.
Hi! So today I finally figured out how to customize the "Are you sure you want to quit?" menu in my game. It's pretty simple looking, but it is just a transparent bubble that appears over whatever background image is present.
What I'd like to happen if the player hits the x button in the main menu would be for them to see the same thing that they'd see in the first link. It doesn't do this when the game has started, or on any other screen, only the main menu.
I had this same problem before too. Here's the solution I was given:
Add the extra line under layout.QUIT (replace the png images with your own). My background.png included the yes-no thing pasted on it, so you may have to add extra lines to add your yesno image.
I love how coding can make me feel like a genuis and a dummy simultaneously! I would have never figured that out if you hadn't posted that. Thanks again!
yuucie wrote:I had this same problem before too. Here's the solution I was given:
Add the extra line under layout.QUIT (replace the png images with your own). My background.png included the yes-no thing pasted on it, so you may have to add extra lines to add your yesno image.
elif message == layout.QUIT:
add "UI/yesno-ground.png"
if main_menu:
add "background.png"
Oh! Thank you!
-- I didn't have this in my backgrounds tutorial because I normally use full-screen jpgs for my backgrounds. With all due respect, I have added it to the tutorial.
Ookami Kasumi ~ Purveyor of fine Smut. Most recent Games Completed: