Coding overlay game menu error :(

Hey people of episode!
I’ve never done a thread before so I apologize if I put this in the wrong place!

So basically, I’ve decided to create a game menu for my story (a game menu is a thing at the start that goes: skip, recap, play)
OMGGG It’s so tough to code! I think that I have multiple errors, and I’ve tried looking things up to help but I couldn’t fix itt :frowning:

What I was trying to do: give an option to skip, play and recap an episode. Additionally, I wanted to allow the readers to go back on their choice if they clicked the wrong button.

Here is the coding down below:

Game menu

INT. SKIP RECAP PLAY
&zoom reset
&overlay INTERACTIVE SKIP PLAY RECAP create
&overlay 5426553780174848_INTERACTIVE SKIP PLAY RECAP shifts to -7 43 in zone 1
&overlay 5426553780174848_INTERACTIVE SKIP PLAY RECAP scales to 0.460 0.460
&overlay INTERACTIVE SKIP PLAY RECAP opacity 1 in 0
&overlay INTERACTIVE SKIP PLAY RECAP to layer 1
#overlay CLICKABLE INVIS OV for Recap.
&overlay CLICKABLE INVIS OV create
&overlay 5426553780174848_CLICKABLE INVIS OV shifts to 87 256 in zone 1
&overlay 5426553780174848_CLICKABLE INVIS OV scales to 0.496 0.496
&overlay CLICKABLE INVIS OV opacity 0 in 0
&overlay CLICKABLE INVIS OV to layer 2
#overlay #2 for skip
&overlay CLICKABLE INVIS OV_2 create from CLICKABLE INVIS OV
&overlay CLICKABLE INVIS OV_2 shifts to 88 315 in zone 1
&overlay CLICKABLE INVIS OV_2 scales to 0.568 0.568
&overlay CLICKABLE INVIS OV_2 opacity 0 in 0
&overlay CLICKABLE INVIS OV_2 to layer 2
&overlay CLICKABLE INVIS OV_3 shifts to 83 384 in zone 1
&overlay CLICKABLE INVIS OV_3 scales to 0.568 0.568
&overlay CLICKABLE INVIS OV_3 create from CLICKABLE INVIS OV
&overlay CLICKABLE INVIS OV_3 opacity 0 in 0
&overlay CLICKABLE INVIS OV_3 to layer 2
#overlay #3 for Play.

label GAME_MENU

tappable
“CLICKABLE INVIS OV” {
#in this episode there’ll be no recap.

goto RECAP_EPI
​}“CLICKABLE INVIS OV_3”{
#put play

goto PLAY_EPI
}“CLICKABLE INVIS OV_2” {
#put skip

goto SKIP_EPI
}

label RECAP EPI
#put recap of episodes here
NARR
Recap here:
goto GAME_MENU

label PLAY_EPI
#where episode would begin
NARR
Are you | bold |sure| reset | you want to play?
choice
“Yes, play”{
#put episode content in here.
NARR
Episode content in here.

}“No, go back.”{
goto GAME_MENU

}

label SKIP_EPI
#put at end of script
NARR
Are you | bold |sure| reset | you want to skip?
choice
“Yes, skip”{
goto label end

}“No, go back.”{
goto GAME_MENU

}

label end

You should put this in the Directing Help & Tips category

And try this one?

INT. SKIP RECAP PLAY
&overlay INTERACTIVE SKIP PLAY RECAP create
&overlay 5426553780174848_INTERACTIVE SKIP PLAY RECAP shifts to -7 43 in zone 1
&overlay 5426553780174848_INTERACTIVE SKIP PLAY RECAP scales to 0.460 0.460
&overlay INTERACTIVE SKIP PLAY RECAP opacity 1 in 0
&overlay INTERACTIVE SKIP PLAY RECAP to layer 1
&overlay CLICKABLE INVIS OV create
&overlay 5426553780174848_CLICKABLE INVIS OV shifts to 87 256 in zone 1
&overlay 5426553780174848_CLICKABLE INVIS OV scales to 0.496 0.496
&overlay CLICKABLE INVIS OV opacity 0 in 0
&overlay CLICKABLE INVIS OV to layer 2
&overlay CLICKABLE INVIS OV_2 create from CLICKABLE INVIS OV
&overlay CLICKABLE INVIS OV_2 shifts to 88 315 in zone 1
&overlay CLICKABLE INVIS OV_2 scales to 0.568 0.568
&overlay CLICKABLE INVIS OV_2 opacity 0 in 0
&overlay CLICKABLE INVIS OV_2 to layer 2
&overlay CLICKABLE INVIS OV_3 create from CLICKABLE INVIS OV
&overlay CLICKABLE INVIS OV_3 shifts to 83 384 in zone 1
&overlay CLICKABLE INVIS OV_3 scales to 0.568 0.568
&overlay CLICKABLE INVIS OV_3 opacity 0 in 0
&overlay CLICKABLE INVIS OV_3 to layer 2
@zoom reset

label game_menu

tappable
“CLICKABLE INVIS OV” {
#in this episode there’ll be no recap.

NARR
Are you | bold |sure| reset | you want to see the recap?
choice
“Yes, recap”{
goto recap_epi
}“No, go back.”{
goto game_menu
}
​}“CLICKABLE INVIS OV_3”{
#put play

NARR
Are you | bold |sure| reset | you want to play this episode?
choice
“Yes, play”{
goto play_epi
}“No, go back.”{
goto game_menu
}
}“CLICKABLE INVIS OV_2” {
#put skip

NARR
Are you | bold |sure| reset | you want to skip this episode?
choice
“Yes, skip”{
goto epi_end
}“No, go back.”{
goto game_menu
}
}

label recap_epi
#put recap of episodes here
NARR
Recap here

goto game_menu

label play_epi
#where episode would begin
#put episode content here.
NARR
Episode content here.

label epi_end
NARR
End episode here

Thanks for the category help! However, it still says there’s an error. It says, “goto recap_epi on line 27 should end the branch. Please remove the rest of the lines or move goto recap_epi to the end.”

1 Like

I edited it! Does it work now?

Oop, I mean, you corrected something I think lol :stuck_out_tongue: Now it says, “Expected CHARACTER or SCENE change. Found “}” CLICKABLE INVIS OV_3 “{” instead. Did you forget to CAPITALIZE the name, or close the ( ) around the animation?”

I fixed the error with the help of @dukii_x!! This thread can be closed hahaha :00

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.