before_main_menu doesn't work as intended. [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
TheKiwi
Regular
Posts: 56
Joined: Sun Feb 03, 2013 4:09 am
Projects: The Waters Above, Heart of the Woods
Organization: Studio Élan
Tumblr: minutekiwi
Contact:

before_main_menu doesn't work as intended. [SOLVED]

#1 Post by TheKiwi » Mon Feb 13, 2017 4:00 pm

In the past, I would use before_main_menu to do things like fadein music or add animations. Now, when I use it, it completely SKIPS the main menu and goes straight to the first scene!
This is ALL I've done.

Code: Select all

label before_main_menu:
    play music "music/Endless Space.mp3" fadein 5.0
At least the music fades in, but yeah. Completely skips main menu. I tried using "splashscreen" as well, but it does the same thing. Am I missing something?

I *did* find a workaround, but it involves making an emptytext character and showing the main menu manually, and adding modal = True to it.
Last edited by TheKiwi on Mon Feb 13, 2017 5:32 pm, edited 1 time in total.

User avatar
IrinaLazareva
Veteran
Posts: 387
Joined: Wed Jun 08, 2016 1:49 pm
Projects: Legacy
Organization: IKG
Location: St.Petersburg, Russia
Contact:

Re: before_main_menu doesn't work as intended.

#2 Post by IrinaLazareva » Mon Feb 13, 2017 4:27 pm

Code: Select all

label before_main_menu:
    play music "music/Endless Space.mp3" fadein 5.0
    return
There is a light at the end of the tunnel, just pray it's not a train.

___
TODO: unresolved/нерешённое

User avatar
IrinaLazareva
Veteran
Posts: 387
Joined: Wed Jun 08, 2016 1:49 pm
Projects: Legacy
Organization: IKG
Location: St.Petersburg, Russia
Contact:

Re: before_main_menu doesn't work as intended.

#3 Post by IrinaLazareva » Mon Feb 13, 2017 4:30 pm

similar with splashscreen

Code: Select all

label splashscreen:
    #<something>
    return

https://www.renpy.org/wiki/renpy/doc/co ... lashscreen
There is a light at the end of the tunnel, just pray it's not a train.

___
TODO: unresolved/нерешённое

User avatar
TheKiwi
Regular
Posts: 56
Joined: Sun Feb 03, 2013 4:09 am
Projects: The Waters Above, Heart of the Woods
Organization: Studio Élan
Tumblr: minutekiwi
Contact:

Re: before_main_menu doesn't work as intended.

#4 Post by TheKiwi » Mon Feb 13, 2017 5:32 pm

You are the best! Thanks!

Post Reply

Who is online

Users browsing this forum: Google [Bot], Vib Tardius