Page 1 of 1

Can I make the game always start up on a certain label?

Posted: Fri Dec 21, 2018 8:59 am
by Nanahs
Ok. I know my questions are always a little "difficult" hah

But there's something I want to know if it's possible.

I found this password code (credits to: https://youtu.be/dY7B_2xwDnY):

Code: Select all

init python:
    correctpassword = "555"
    typedpassword = ""


label password:
    scene phonelockscreen


    while typedpassword != correctpassword:
        python:
            typedpassword = renpy.input("Type the password to continue.")
        if typedpassword != correctpassword:
            "Wrong password. Try again."

    jump rightpassword

    
    
label rightpassword:
        
    scene phonelockscreen
    centered "{color=#f00}Let's go on!{/color}"    
The game will only go on if you type the correct password.

Since my game simulates a phone, I wanted the game to always start with the "label password". So It would look like a screen locker.

It it possible to do?

I mean, when you click on the game, the first thing that will show when the game launches, would be that label.

Something like a splashscreen?

What do you guys think?

Thanks.

Re: Can I make the game always start up on a certain label?

Posted: Fri Dec 21, 2018 9:31 am
by DannX
Take a look here, you should be able to use one of the special labels described there, maybe after_load, or main_menu.

Re: Can I make the game always start up on a certain label?

Posted: Fri Dec 21, 2018 7:11 pm
by Nanahs
DannX wrote:
Fri Dec 21, 2018 9:31 am
Take a look here, you should be able to use one of the special labels described there, maybe after_load, or main_menu.
Thank you so much! I'll give it a look :)