How to Make an 'Extra Scene' Gallery?

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
ArizaLuca
Veteran
Posts: 241
Joined: Tue Feb 20, 2018 12:59 pm
Completed: Through the Screen, Riddle Me This, Trust Fall, Phobias, Another Adventure
Projects: The Souls in the Seams, Fata Morgana, Minecraft: Story Mode - Behind the Scenes
Organization: Astral Autumn Games
Tumblr: astralautumngames
Deviantart: ArizaLuca
itch: astralautumngames
Contact:

How to Make an 'Extra Scene' Gallery?

#1 Post by ArizaLuca »

I know there's like image galleries, music rooms, and other things like that, but I want to make a gallery where you can unlock extra scenes, like the ones in Valentine's Otome by Synokoria... does anybody have any idea how to do that? Thanks.

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3791
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: How to Make an 'Extra Scene' Gallery?

#2 Post by Imperf3kt »

make a screen with links to each 'chapter'

(very basic)example using three different actions:

Code: Select all

screen extras():
    if persistent.end:
        vbox:
            textbutton _("Secret after ending scene 01") action Start("secret_01")
            textbutton _("Secret after ending scene 02") action Jump("secret_02")
            textbutton _("Secret after ending scene 03") action  Call("secret_03")
    else:
        vbox:
            null
            null
            null
# the else bit isn't strictly necessary, but it helps keep formatting if you have other objects styled based on position of other things within the screen.

default persistent.end = False

label start:
    e "This story is kinda short..."
    $ persistent.end = True
    return

label secret_01:
    e "Oh wait, hello again."
    return

label secret_02:
    e "Really, stop with the super short chat."
    return

label secret_03:
    e "Alright, thats it. I'v had enough, no more extra endings for you."
    reurn
    
Don't forget to include a button in your navigation. Something like:

Code: Select all

    textbutton _("Bonus Scenes") action ShowMenu("extras")
    
Or you could make it so the entire screen isn't available until the game is completed:

Code: Select all

    if persistent.end:
        textbutton _("Bonus Scenes") action ShowMenu("extras")
        
If you take this route, I suggest editing this bit:

Code: Select all

screen extras():
    if persistent.end:
        vbox:
            textbutton _("Secret after ending scene 01") action Start("secret_01")
            textbutton _("Secret after ending scene 02") action Jump("secret_02")
            textbutton _("Secret after ending scene 03") action  Call("secret_03")
    else:
        vbox:
            null
            null
            null
            
to this:

Code: Select all

screen extras():
    vbox:
        textbutton _("Secret after ending scene 01") action Start("secret_01")
        textbutton _("Secret after ending scene 02") action Jump("secret_02")
        textbutton _("Secret after ending scene 03") action  Call("secret_03")
            
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

ArizaLuca
Veteran
Posts: 241
Joined: Tue Feb 20, 2018 12:59 pm
Completed: Through the Screen, Riddle Me This, Trust Fall, Phobias, Another Adventure
Projects: The Souls in the Seams, Fata Morgana, Minecraft: Story Mode - Behind the Scenes
Organization: Astral Autumn Games
Tumblr: astralautumngames
Deviantart: ArizaLuca
itch: astralautumngames
Contact:

Re: How to Make an 'Extra Scene' Gallery?

#3 Post by ArizaLuca »

Thank you so much! I'll definitely try it out.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Semrush [Bot]