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

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
User avatar
Nanahs
Veteran
Posts: 310
Joined: Wed Aug 22, 2018 5:50 pm
Contact:

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

#1 Post 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.

DannX
Regular
Posts: 99
Joined: Mon Mar 12, 2018 11:15 am
Contact:

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

#2 Post 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.

User avatar
Nanahs
Veteran
Posts: 310
Joined: Wed Aug 22, 2018 5:50 pm
Contact:

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

#3 Post 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 :)

Post Reply

Who is online

Users browsing this forum: Semrush [Bot]