Adding a Start Screen Before the Main Menu
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.
- curry nochi rice
- Miko-Class Veteran
- Posts: 746
- Joined: Sat Mar 27, 2010 3:12 am
- Projects: Delicatessen, Whom to Notice, Start of Something, Love Sorcery
- Organization: Circle Cosine
- IRC Nick: Curry
- Skype: after.curry.rice
- itch: project-rothera
- Contact:
Adding a Start Screen Before the Main Menu
Like the games of old, how do you add a screen/menu before the actual main menu? Like after loading and all the splashscreens, the players must press ENTER or SPACE or F to start the game.
- Sslaxx
- Regular
- Posts: 52
- Joined: Thu Jul 18, 2013 7:35 pm
- Deviantart: sslaxx
- Github: Sslaxx
- Skype: Sslaxx
- Location: Malvern, UK
- Discord: Sslaxx#0159
- Contact:
Re: Adding a Start Screen Before the Main Menu
Splashscreen might be helpful to look into here as that's called before the main menu stuff.
As a simple example:
As a simple example:
Code: Select all
# Splashscreen stuff here. Also variables etc. that should be saved should be defined here, too.
label splashscreen:
$ renpy.pause (0) # This MUST always be the first line in splashscreen.
scene Whitedrop
with None
if config.developer:
# If developer console (aka debug) mode is enabled, make sure a message to that effect is given here.
"DEVELOPER (DEBUG) MODE ENABLED"
return
Stuart "Sslaxx" Moore.
- curry nochi rice
- Miko-Class Veteran
- Posts: 746
- Joined: Sat Mar 27, 2010 3:12 am
- Projects: Delicatessen, Whom to Notice, Start of Something, Love Sorcery
- Organization: Circle Cosine
- IRC Nick: Curry
- Skype: after.curry.rice
- itch: project-rothera
- Contact:
Re: Adding a Start Screen Before the Main Menu
Hmm... so basically like a menu but instead of choices, you present a key?Sslaxx wrote:Splashscreen might be helpful to look into here as that's called before the main menu stuff.
As a simple example:Code: Select all
# Splashscreen stuff here. Also variables etc. that should be saved should be defined here, too. label splashscreen: $ renpy.pause (0) # This MUST always be the first line in splashscreen. scene Whitedrop with None if config.developer: # If developer console (aka debug) mode is enabled, make sure a message to that effect is given here. "DEVELOPER (DEBUG) MODE ENABLED" return
- Sslaxx
- Regular
- Posts: 52
- Joined: Thu Jul 18, 2013 7:35 pm
- Deviantart: sslaxx
- Github: Sslaxx
- Skype: Sslaxx
- Location: Malvern, UK
- Discord: Sslaxx#0159
- Contact:
Re: Adding a Start Screen Before the Main Menu
No. It's just a standard Ren'Py label, it's up to you what to code for it.
Stuart "Sslaxx" Moore.
- 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: Adding a Start Screen Before the Main Menu
I believe that's what label "before_main_menu" was created for: http://www.renpy.org/doc/html/label.html#special-labels
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)
TOIRE NO HANAKO (A Story About Fear)
Re: Adding a Start Screen Before the Main Menu
Sslaxx wrote: ↑Mon Jan 04, 2016 10:52 am Splashscreen might be helpful to look into here as that's called before the main menu stuff.
As a simple example:Code: Select all
# Splashscreen stuff here. Also variables etc. that should be saved should be defined here, too. label splashscreen: $ renpy.pause (0) # This MUST always be the first line in splashscreen. scene Whitedrop with None if config.developer: # If developer console (aka debug) mode is enabled, make sure a message to that effect is given here. "DEVELOPER (DEBUG) MODE ENABLED" return
is this thread has closed or solved? because i want to ask for more detail.
can you give me the detail code, as i see, it stop at if config.developer block. since im new in here, and have less knowledge about python, i need ur assistance for this start screen before main menu.
i understand the splashscreen block, like adding scene, cutscene, pause, transition and so on. but after that, begin the - reach the 'press space bar to start' screen - i dont have any idea about that. can you lead me, how to add it, how to change the button from spacebar to F or something, or maybe the user must click specific button to start, and something like that.
sorry for my bad english, im not a native. i hope you understand.
Re: Adding a Start Screen Before the Main Menu
well, i found a similar thread viewtopic.php?f=8&t=22483&p=466922#p466922
and i understand how its work. but i have another question. is it possible to change the background of Start Screen and Main Menu Screen. i mean, its like to show an animal background on 'Press the Start Button' Screen, and the jungle background on the Main Menu Screen
and i understand how its work. but i have another question. is it possible to change the background of Start Screen and Main Menu Screen. i mean, its like to show an animal background on 'Press the Start Button' Screen, and the jungle background on the Main Menu Screen
- 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: Adding a Start Screen Before the Main Menu
I have no idea why you started another thread in the General Discussion section (out of the Ren'Py section) about the same subject, but Divona answered your question there.
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)
TOIRE NO HANAKO (A Story About Fear)
Re: Adding a Start Screen Before the Main Menu
Well, thx for your correction about my missplaced thread. I manage to replace it (but dont know how to do).
Yes Divona answer my question and it work like a charm to me.
And i am sorry, i started similar thread at wrong section. Should i remove or add [solved] on it?
- 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: Adding a Start Screen Before the Main Menu
Don't worry, a moderator will take care of that thread if he/she feels like it. My post on your thread here was only to make other people know your question was already answered. Yes, you can add [Solved] to the thread's title. That will help people who're searching for the same solution.
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: DewyNebula