[Solved] Fade out 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.
Message
Author
User avatar
Ocelot
Lemma-Class Veteran
Posts: 2402
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: Fade out main menu?

#16 Post by Ocelot »

3 and renpy.music.stop(channel="music", fadeout=3) equals to 3 and None because stop does not return a value, which. in turn, means None
Same effect could be achieved by:

Code: Select all

renpy.music.stop(channel="music", fadeout=3)
pause
If you want to have automatic pause, you need to make sure you have at least some duration:

Code: Select all

renpy.music.stop(channel="music", fadeout=3)
pause 0.01
If you find out that pause is too short, you can change duration to be slightly longer.
< < insert Rick Cook quote here > >

TRIDENT_12
Regular
Posts: 30
Joined: Tue Aug 03, 2021 4:29 pm
Projects: The Monster Within
Github: TRIDENT1313
Discord: TRIDENT_12#2285
Contact:

Re: Fade out main menu?

#17 Post by TRIDENT_12 »

Ocelot wrote: Fri Jan 28, 2022 3:26 am 3 and renpy.music.stop(channel="music", fadeout=3) equals to 3 and None because stop does not return a value, which. in turn, means None
Same effect could be achieved by:

Code: Select all

renpy.music.stop(channel="music", fadeout=3)
pause
My issue with that, is the c2c.
I can't have it automatically to to the choice

Code: Select all

label start:
    $ renpy.music.stop(channel="music", fadeout=3)
    pause

    $ s_name = "Sarah"
    $ k_name = "???"
    $ a_name = "???"
    $ style.say_dialogue = style.normal

if persistent.act == 1:
    menu:
        "Do you want to skip to the end?"
        "Yes":
            jump credits
        "No":
            pass

    menu:
        "Do want to go to act 2?"
        "Yes":
            $ persistent.act = 2
            jump ch21
        "NO":
            pass
The click to continue is just annoying
I literally want it to go
Fade out, choice
Without the c2c
Because right now, it's fading out
But I have to click to get to the choice, which I don't want

User avatar
Ocelot
Lemma-Class Veteran
Posts: 2402
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: Fade out main menu?

#18 Post by Ocelot »

I literally wrote what you need to do to avoid having to click in the same message. Is there any problem with the timed pause approach?
< < insert Rick Cook quote here > >

TRIDENT_12
Regular
Posts: 30
Joined: Tue Aug 03, 2021 4:29 pm
Projects: The Monster Within
Github: TRIDENT1313
Discord: TRIDENT_12#2285
Contact:

Re: Fade out main menu?

#19 Post by TRIDENT_12 »

Ocelot wrote: Sat Jan 29, 2022 5:16 am I literally wrote what you need to do to avoid having to click in the same message. Is there any problem with the timed pause approach?
No.
I was just an idiot and didn't read shit properly
Sorry.
I've been recovering from surgery so my brain isn't 100% right now
Thanks so much for your help, Ocelot

Post Reply

Who is online

Users browsing this forum: DewyNebula, Majestic-12 [Bot], Sugar_and_rice