u/LittleBirdieStudioos

▲ 2 r/RenPy

Once all Showif Image Buttons are clicked, move to next scene.

PLS HELP IF U CAN, SRY IM A YAPPER.

GOAL:

After all buttons are clicked, it moves to story_3. It's for an interactive clean up scene in my game.

Hello! I am stuck in an issue, and this is for a game jam. I am trying to make it that after clicking the image buttons (All of them or specific ones like tt1 and tt2 and tt3 and tt4:) Then it moves to next label which I would call lets say uhhh story_3.

But I tried to do it that maybe it does if not tt1: (Or like etc) and maybe add else: it would work? But I want the buttons to disappear, so Im using showifs. BUT THEN AGAIN Im still a little newbie when it comes to renpy. So this is kind of puzzling to me. If I move my default tt1 or tt2(SO ON-) Outside of the screen, it gets an error since I have that togglescreenvariable. SO AAAAAAAA HELP ME PLS. Anyways still searching but any help is great!

Also this script is just how it works so far, but please like- help with making it that it moves to label story_3.

Here's the script since it's pretty long.

screen penthouse_cleanup1():


    default tt1 = True
    default tt2 = True
    default tt3 = True
    default tt4 = True
    default tt5 = True
    default tt6 = True


    add "bg home"


    showif tt1:
        imagebutton:
            yanchor 0.5
            xanchor 0.5
            xpos 0.64
            ypos 0.8
            at zoomedsmall
            auto "cardboard_%s.png"
            action ToggleScreenVariable("tt1")



    showif tt2:
        imagebutton:
            yanchor 0.5
            xanchor 0.5
            xpos 0.5
            ypos 0.45
            at zoomedtinyy
            auto "cardboard1_%s.png"
            action ToggleScreenVariable("tt2")



    showif tt3:
        imagebutton:
            yanchor 0.5
            xanchor 0.5
            xpos 0.2
            ypos 0.8
            at zoomedtinyy
            auto "paper_%s.png"
            action ToggleScreenVariable("tt3")



    showif tt4:
        imagebutton:
            yanchor 0.5
            xanchor 0.5
            xpos 0.3
            ypos 0.6
            at zoomedtiny
            auto "spill_%s.png"
            action ToggleScreenVariable("tt4")


    showif tt5:
        imagebutton:
            yanchor 0.5
            xanchor 0.5
            xpos 0.673
            ypos 0.57
            at zoomedtinyy1
            auto "blood_%s.png"
            action ToggleScreenVariable("tt5")screen penthouse_cleanup1():


    default tt1 = True
    default tt2 = True
    default tt3 = True
    default tt4 = True
    default tt5 = True
    default tt6 = True


    add "bg home"


    showif tt1:
        imagebutton:
            yanchor 0.5
            xanchor 0.5
            xpos 0.64
            ypos 0.8
            at zoomedsmall
            auto "cardboard_%s.png"
            action ToggleScreenVariable("tt1")



    showif tt2:
        imagebutton:
            yanchor 0.5
            xanchor 0.5
            xpos 0.5
            ypos 0.45
            at zoomedtinyy
            auto "cardboard1_%s.png"
            action ToggleScreenVariable("tt2")



    showif tt3:
        imagebutton:
            yanchor 0.5
            xanchor 0.5
            xpos 0.2
            ypos 0.8
            at zoomedtinyy
            auto "paper_%s.png"
            action ToggleScreenVariable("tt3")



    showif tt4:
        imagebutton:
            yanchor 0.5
            xanchor 0.5
            xpos 0.3
            ypos 0.6
            at zoomedtiny
            auto "spill_%s.png"
            action ToggleScreenVariable("tt4")


    showif tt5:
        imagebutton:
            yanchor 0.5
            xanchor 0.5
            xpos 0.673
            ypos 0.57
            at zoomedtinyy1
            auto "blood_%s.png"
            action ToggleScreenVariable("tt5")
reddit.com
u/LittleBirdieStudioos — 2 days ago