Adding a Start Screen Before the Main Menu

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
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

#1 Post by curry nochi rice »

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.
Personal (R-13) | Now at IndieDB | Circle Cosine's itch.io
I wanna be done.

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

#2 Post by Sslaxx »

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
Stuart "Sslaxx" Moore.

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

#3 Post by curry nochi rice »

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
Hmm... so basically like a menu but instead of choices, you present a key?
Personal (R-13) | Now at IndieDB | Circle Cosine's itch.io
I wanna be done.

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

#4 Post by Sslaxx »

No. It's just a standard Ren'Py label, it's up to you what to code for it.
Stuart "Sslaxx" Moore.

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: Adding a Start Screen Before the Main Menu

#5 Post by Donmai »

I believe that's what label "before_main_menu" was created for: http://www.renpy.org/doc/html/label.html#special-labels
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

adeRuZet
Newbie
Posts: 13
Joined: Wed Oct 04, 2017 11:23 am
Github: aderuZet
Contact:

Re: Adding a Start Screen Before the Main Menu

#6 Post by adeRuZet »

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.

adeRuZet
Newbie
Posts: 13
Joined: Wed Oct 04, 2017 11:23 am
Github: aderuZet
Contact:

Re: Adding a Start Screen Before the Main Menu

#7 Post by adeRuZet »

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

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: Adding a Start Screen Before the Main Menu

#8 Post by Donmai »

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.
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

adeRuZet
Newbie
Posts: 13
Joined: Wed Oct 04, 2017 11:23 am
Github: aderuZet
Contact:

Re: Adding a Start Screen Before the Main Menu

#9 Post by adeRuZet »

Donmai wrote: Sat Oct 14, 2017 2:09 pm 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.
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?

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: Adding a Start Screen Before the Main Menu

#10 Post by Donmai »

:) 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.
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