Page 1 of 1

How to Make an 'Extra Scene' Gallery?

Posted: Mon Apr 16, 2018 8:34 am
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.

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

Posted: Mon Apr 16, 2018 9:21 am
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")
            

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

Posted: Mon Apr 16, 2018 6:49 pm
by ArizaLuca
Thank you so much! I'll definitely try it out.