Can't Continue Gameplay After a Screen Closes

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
meatpretzel
Newbie
Posts: 1
Joined: Wed Apr 10, 2024 2:47 pm
Projects: FNaF: Cassie's Birthday
itch: meatpretzel
Contact:

Can't Continue Gameplay After a Screen Closes

#1 Post by meatpretzel »

I'm trying to continue the dialogue after the player closes the tutorial screen but i can't really figure out what to do here, when the player closes the screen with the close button thats in the screen, the story wont progress. Here's my code for the screen:

Code: Select all

screen tutorial2:

    modal True

    frame:

        xysize (500, 500)
        align (0.5, 0.5)

        text "PLAYTEST MODE" align (0.5, 0.01)

        add "gui/window_icon.png":

                align (0.5, 0.3)
                size (300, 300)

        vbox:

            align (0.5, 0.99)
            spacing 10

            text "You just tested the Tutorial Screen." align (0.5, 0.5)

            textbutton "close":

                align (0.5, 0.5)
                
                action [Play("audio", "audio/yes.wav"), Hide("tutorial2")]
And here's my script files code:

Code: Select all

        "Playtest Mode":

            call screen tutorial

            test "Alright, let's take you to the classroom so you can test other features."

            show bg classroom with moveintop

            test "Let's start with the Journal."

            call screen journal_tut

philat
Eileen-Class Veteran
Posts: 1920
Joined: Wed Dec 04, 2013 12:33 pm
Contact:

Re: Can't Continue Gameplay After a Screen Closes

#2 Post by philat »

Use Return() instead of Hide().

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Ocelot