Page 1 of 1

Can't Continue Gameplay After a Screen Closes

Posted: Wed Apr 10, 2024 2:53 pm
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

Re: Can't Continue Gameplay After a Screen Closes

Posted: Wed Apr 10, 2024 8:08 pm
by philat
Use Return() instead of Hide().