Fade to black when you start a new game?
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.
- InvertMouse
- Regular
- Posts: 95
- Joined: Sat May 31, 2014 3:41 am
- Completed: Unhack
- Organization: InvertMouse
- Location: Sydney, Australia
- Contact:
Fade to black when you start a new game?
Hi there . When you call Start() to begin a new game, is it possible to make the menu slowly fade to black first? I have tried to set up the transition config here:
https://www.renpy.org/doc/html/config.html
But none of them seem to do the trick. Sorry for not knowing something so basic. I tried to look at the docs, and I searched the forums, but I wasn't able to find an answer. Chances are, I just failed to use the right keywords.
Thank you!
https://www.renpy.org/doc/html/config.html
But none of them seem to do the trick. Sorry for not knowing something so basic. I tried to look at the docs, and I searched the forums, but I wasn't able to find an answer. Chances are, I just failed to use the right keywords.
Thank you!
Re: Fade to black when you start a new game?
Renpy doesn't have any transition between the main menu and the beginning of a new game.
My avatar is courtesy of Mellanthe
- Arowana
- Miko-Class Veteran
- Posts: 531
- Joined: Thu May 31, 2012 11:17 pm
- Completed: a2 ~a due~
- Projects: AXIOM.01, The Pirate Mermaid
- Organization: Variable X, Navigame
- Tumblr: navigame-media
- itch: navigame
- Contact:
Re: Fade to black when you start a new game?
I think you can just write the transition when you begin your first scene. For example:
Code: Select all
label start:
scene school
with fade
"My first scene."
Complete: a2 ~a due~ (music, language, love)
In progress: The Pirate Mermaid (fairytale otome)
On hold: AXIOM.01 (girl detective game)
In progress: The Pirate Mermaid (fairytale otome)
On hold: AXIOM.01 (girl detective game)
- InvertMouse
- Regular
- Posts: 95
- Joined: Sat May 31, 2014 3:41 am
- Completed: Unhack
- Organization: InvertMouse
- Location: Sydney, Australia
- Contact:
Re: Fade to black when you start a new game?
Thank you for the responses . Yeah, you can start the scene with fade, but the menu will still jump to black first without fading.
- Arowana
- Miko-Class Veteran
- Posts: 531
- Joined: Thu May 31, 2012 11:17 pm
- Completed: a2 ~a due~
- Projects: AXIOM.01, The Pirate Mermaid
- Organization: Variable X, Navigame
- Tumblr: navigame-media
- itch: navigame
- Contact:
Re: Fade to black when you start a new game?
Hmm, really? The menu fades smoothly for me without jumping. Or maybe I'm misunderstanding the effect you're looking for?
Complete: a2 ~a due~ (music, language, love)
In progress: The Pirate Mermaid (fairytale otome)
On hold: AXIOM.01 (girl detective game)
In progress: The Pirate Mermaid (fairytale otome)
On hold: AXIOM.01 (girl detective game)
Re: Fade to black when you start a new game?
@Invertmouse : if you're typing "scene black" and "with fade" on the same line, the result will be different from typing them on different lines. Arowana's code actually works; it emulates transition between main menu and new game (which by default isn't supported in renpy's config).
My avatar is courtesy of Mellanthe
- IrinaLazareva
- Veteran
- Posts: 399
- Joined: Wed Jun 08, 2016 1:49 pm
- Projects: Legacy
- Organization: SunShI
- Location: St.Petersburg, Russia
- Contact:
Re: Fade to black when you start a new game?
Well...
For example, that is real screen of main menu (in screens.rpy)
then
For example, that is real screen of main menu (in screens.rpy)
Code: Select all
screen main_menu():
tag menu
window:
style "mm_root"
frame:
style_group "mm"
xalign .98
yalign .98
has vbox
textbutton _("Start Game") action Start()
textbutton _("Load Game") action ShowMenu("load")
textbutton _("Preferences") action ShowMenu("preferences")
textbutton _("Help") action Help()
textbutton _("Quit") action Quit(confirm=False)
Code: Select all
#fake screen of main menu (just copy)
screen notmain_menu():
tag menu
window:
style "mm_root"
frame:
style_group "mm"
xalign .98
yalign .98
has vbox
textbutton _("Start Game") action NullAction() #disabled (just in case)
textbutton _("Load Game") action NullAction()
textbutton _("Preferences") action NullAction()
textbutton _("Help") action NullAction()
textbutton _("Quit") action NullAction()
timer .1 action Hide("notmain_menu", transition=Fade(2, 0, 0)) ## add Transition
# The game starts here.
label start:
show screen notmain_menu
scene black
$ renpy.pause (3, hard=True)
"Hello"
return
- InvertMouse
- Regular
- Posts: 95
- Joined: Sat May 31, 2014 3:41 am
- Completed: Unhack
- Organization: InvertMouse
- Location: Sydney, Australia
- Contact:
Re: Fade to black when you start a new game?
Thanks again everyone . indoneko, yes, your response works! I had no idea putting them on separate lines made a difference. Thank you.
Who is online
Users browsing this forum: Imperf3kt