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.
-
Valhalla Ent
- Newbie
- Posts: 13
- Joined: Mon Mar 11, 2019 5:35 pm
-
Contact:
#1
Post
by Valhalla Ent » Mon Jul 06, 2020 5:12 pm
1. I want to create an extras section that can be accesible in the main menu of my VN.
2. In the extras section, the player can access the "gallery" and "bonus scenes".
3. When the player clicks "gallery", it takes him to the gallery, which I already made.
4. And when the player clicks on "bonus scenes", it takes him to a screen that let's you choose
between two different scenes.
5. These bonus scenes are unlocked after finishing the first chapter of the story. So I want them to be locked until this criteria is met.
I would greatly appreciate the help

-
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:
#2
Post
by namastaii » Tue Jul 07, 2020 5:03 pm
If the gallery is already working the way you want (like certain parts being locked/unlocked) then all you need to do is edit the main menu screen and add buttons next to the other ones that open those screens up. As for the bonus scenes, just make those individual labels in your story if they're not part of the main story and have a button open up a little screen you made with two buttons that each jump to the labels for those scenes.
The main menu screen is under
screens.rpy called
navigation and you can add textbuttons there with the actions to open the gallery or jump to labels
https://www.renpy.org/doc/html/screen_a ... ol-actions
something like
Code: Select all
textbutton "Gallery" action Show("gallery")
Code: Select all
textbutton "Bonus Scenes" action Show("bonusScenes")
and maybe if your bonus scenes screen had imagebuttons or something, they'd do something like this:
Code: Select all
imagebutton "scene1.png" action Jump("bonus_scene1")
imagebutton "scene2.png" action Jump("bonus_scene2")
I'm not sure how much you know or if this is helpful or what you were looking for. If you want to lock the bonus scenes until after they've finished the story or something, you could use a true/false and put a gray version of the imagebutton with a Null action if the variable is false, and when it's true, then have the regular version of the imagebutton with the action that takes them to the label.
Users browsing this forum: Google [Bot]