How can I fix this? Coding help?

I’m trying to make a menu game thing, where you can select what you want to do by tapping on it. It looks like this.


Buuuttt… I’m having issues going back to the main game menu page. The buttons work just fine… but going back to it? Ha, not a chance. When I click on one of the buttons, it’ll go where I want it to go, but then it freezes. Should I write anything differently?

And I have no errors, either. (Well, the buttons aren’t approved yet and neither is the background… but the buttons work fine? And I even tried to use this code with one of Episode’s default backgrounds and it still didn’t work.) I have no idea if this is because the buttons aren’t approved yet or not, and if it’s not, I want to solve this problem before I even think of publishing the story!

@transition fade out
INT. N. BACKGROUND
@overlay WARNINGS BUTTON create
@overlay WARNINGS BUTTON opacity 1
@overlay 5679269216911360_WARNINGS BUTTON shifts to 61 381
@overlay 5679269216911360_WARNINGS BUTTON scales to 1.000 1.000
@overlay CUSTOMIZE BUTTON create
@overlay CUSTOMIZE BUTTON opacity 1
@overlay 5679269216911360_CUSTOMIZE BUTTON shifts to 61 313
@overlay 5679269216911360_CUSTOMIZE BUTTON scales to 1.000 1.000
@overlay START STORY BUTTON create
@overlay START STORY BUTTON opacity 1
@overlay 5679269216911360_START STORY BUTTON shifts to 59 244
@overlay 5679269216911360_START STORY BUTTON scales to 1.000 1.000

@transition fade in

label game_menu

tappable
“WARNINGS BUTTON”{

goto warnings

} “CUSTOMIZE BUTTON” {

goto customize

} “START STORY BUTTON” {

goto start_story

}

label customize

@zoom on 163 41 to 203% in 0

INT. GYM BASKETBALL SEA SPARKLE - NIGHT

@overlay CUST. STAGE create
@overlay CUST. STAGE opacity 1

@MC moves to layer 2

@overlay CUST. STAGE to layer 1

@MC spot 0.506 166 227

@zoom on 177 48 to 210% in 2

#CUSTOMIZATION

goto game_menu

label warnings

INT. WARNING - BOTH

@pause for 5

goto game_menu

label start_story

Since you change background when choosing a “path”, your overlays kind of reset, so the label game_menu has to be moved before the background - at least I think haha

@transition fade out

label game_menu

INT. N. BACKGROUND
@overlay WARNINGS BUTTON create
@overlay WARNINGS BUTTON opacity 1
@overlay 5679269216911360_WARNINGS BUTTON shifts to 61 381
@overlay 5679269216911360_WARNINGS BUTTON scales to 1.000 1.000
@overlay CUSTOMIZE BUTTON create
@overlay CUSTOMIZE BUTTON opacity 1
@overlay 5679269216911360_CUSTOMIZE BUTTON shifts to 61 313
@overlay 5679269216911360_CUSTOMIZE BUTTON scales to 1.000 1.000
@overlay START STORY BUTTON create
@overlay START STORY BUTTON opacity 1
@overlay 5679269216911360_START STORY BUTTON shifts to 59 244
@overlay 5679269216911360_START STORY BUTTON scales to 1.000 1.000
@transition fade in

tappable
“WARNINGS BUTTON”{
goto warnings
} “CUSTOMIZE BUTTON” {
goto customize
} “START STORY BUTTON” {
goto start_story
}

1 Like

Omg, thank you! It worked! :two_hearts:

1 Like

If I may suggest this version of the script. It’s smoother I think

Closed: Marked as solved by thread op :v: