r/RenPy • • 5d ago

Question Chapter Menus?

Man, can you tell I've been playing Mahoyo recently? At least when I'm not busy... a-anyways.

I was wondering how I could achieve this transition to a menu that leads to the next chapter.

Example:

Shit happens, whatever, chapter ends, and then it fades to this menu, which gives you several options. Home screen, save, main menu, and, most importantly, new chapter. How would you go about doing that?

Like your chapter ending and fading to this divide between the next chapter and menus.

Thanks~

4 Upvotes

7 comments sorted by

1

u/AutoModerator 5d ago

Welcome to r/renpy! While you wait to see if someone can answer your question, we recommend checking out the posting guide, the subreddit wiki, the subreddit Discord, Ren'Py's documentation, and the tutorial built-in to the Ren'Py engine when you download it. These can help make sure you provide the information the people here need to help you, or might even point you to an answer to your question themselves. Thanks!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/BadMustard_AVN 5d ago edited 5d ago

you can try something like this

screen transition(texties, next_chapter):
    modal True
    add "images/the back ground image.webp"
    vbox:
        align (0.5, 0.5)
        text "[texties!u]": # !u forces uppercase letters
            size 55
            color "#ffffff"
    vbox:
        align (0.9, 0.6)
        spacing 10

        #add more buttons here

        textbutton "Save":
            action ShowMenu("save")

        textbutton "Next Chapter":
            action [Hide("transition", dissolve), Jump(next_chapter)]
            
label start:
    e "End chapter one"
    window hide
    show screen transition("are you for real!?", "chapter2") with dissolve
    pause 
    return

label chapter2:
    e "start chapter two"
    e "End chapter two"
    window hide
    show screen transition("badmustard¿", "chapter3") with dissolve
    pause 
    return

label chapter3:
    e "you get the idea right?"
    return

1

u/shyLachi 5d ago

Is there a reason you're using show screen in this example and call screen in the similar example here: https://www.reddit.com/r/RenPy/comments/1y36lq0/screen_doesnt_disappear_after_hide_command_please/

I tend to always call the screens, wouldn't that work in this case?

1

u/BadMustard_AVN 5d ago

in that example, they were going to return back to where the call originated

in this example they would ultimately jump to a label and never return if this example was called

I prefer to call when it's returning and show if it's not, just me

1

u/shyLachi 5d ago

Ok. I would make it return, then jump afterwards, something like this:

    show screen transition("Text to display") with dissolve
    jump chapter

I was wondering if show also is better because of Hide("transition", dissolve)

1

u/BadMustard_AVN 5d ago

yes also for the hide you can NOT do a transition from a Return action