[SOLVED] After-credits scene

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
poep
Regular
Posts: 46
Joined: Tue Feb 04, 2014 1:26 pm
Contact:

[SOLVED] After-credits scene

#1 Post by poep » Tue Aug 27, 2019 8:36 am

I'm trying to make my game go to the credits first and have an after-credits scene for each of the endings with the following code:

Code: Select all

label credits:
    $ credits_speed = 25
    scene white
    play music "Credits.ogg"
    show credits_image at Move((0.5, 1.0), (0.5, -6.6), credits_speed,
                  xanchor=0.5, yanchor=0)
    with Pause(credits_speed+10)
    if end1 == True:
        jump end01
    elif end2 == True:
        jump end02
    elif end3 == True:
        jump end03
But since adding the last part the game ignores the pause and just skips to the after-credits scene without showing the credits first.

Anyone know what I can do to show the credits before jumping to the after-credits scene? Thanks in advance.
Last edited by poep on Wed Aug 28, 2019 7:25 am, edited 1 time in total.

User avatar
hell_oh_world
Miko-Class Veteran
Posts: 777
Joined: Fri Jul 12, 2019 5:21 am
Projects: The Button Man
Organization: NILA
Github: hell-oh-world
Location: Philippines
Contact:

Re: After-credits scene

#2 Post by hell_oh_world » Tue Aug 27, 2019 9:08 am

poep wrote:
Tue Aug 27, 2019 8:36 am
I'm trying to make my game go to the credits first and have an after-credits scene for each of the endings with the following code:

Code: Select all

label credits:
    $ credits_speed = 25
    scene white
    play music "Credits.ogg"
    show credits_image at Move((0.5, 1.0), (0.5, -6.6), credits_speed,
                  xanchor=0.5, yanchor=0)
    with Pause(credits_speed+10)
    if end1 == True:
        jump end01
    elif end2 == True:
        jump end02
    elif end3 == True:
        jump end03
But since adding the last part the game ignores the pause and just skips to the after-credits scene without showing the credits first.

Anyone know what I can do to show the credits before jumping to the after-credits scene? Thanks in advance.
Maybe the pause transition is not the thing you're looking for, try this one instead:

Code: Select all

label credits:
    $ credits_speed = 25
    scene white
    play music "Credits.ogg"
    show credits_image at Move((0.5, 1.0), (0.5, -6.6), credits_speed,
                  xanchor=0.5, yanchor=0)
    pause (credits_speed+10) # Using an ordinary pause statement and not a Pause transition
    ## If you want to disable interactions while showing the credits, use renpy.pause() instead.
    ## E.g. $ renpy.pause(delay=credits_speed+10, hard=True)
    if end1 == True:
        jump end01
    elif end2 == True:
        jump end02
    elif end3 == True:
        jump end03

poep
Regular
Posts: 46
Joined: Tue Feb 04, 2014 1:26 pm
Contact:

Re: After-credits scene

#3 Post by poep » Wed Aug 28, 2019 7:24 am

Thank you very much, that solves my problem.

Post Reply

Who is online

Users browsing this forum: Google [Bot]