Help with Script Errors

Hi, there! I’m working on a story on the Episode Writer Portal. I have an issue with some overlays, and I don’t know exactly what I’m doing wrong.

The error says: “Overlay animation “OVERLAY” has been created. You’ve created multiple overlays with the same name in your script; any animations will only apply to the most recently created one.”

And this is my script:
label choose_breakfast_rebecca
&overlay HOTCAKES create
&overlay HOTCAKES opacity 1 in 0
&overlay HOTCAKES shifts to 18 337 in zone 2
&overlay HOTCAKES scales to 0.347 0.347
&overlay MEXICAN SCRAMBLED EGGS create
&overlay MEXICAN SCRAMBLED EGGS opacity 1 in 0
&overlay MEXICAN SCRAMBLED EGGS shifts to 15 286 in zone 2
&overlay MEXICAN SCRAMBLED EGGS scales to 0.289 0.289
&overlay QUESABROSAS create
&overlay QUESABROSAS opacity 1 in 0
@overlay QUESABROSAS shifts to 18 220 in zone 2
@overlay QUESABROSAS scales to 0.693 0.693
@zoom on 363 233 to 151% in 1
@speechbubble is 152 157 to 100% with tail_top_right
REBECCA (think_rubchin)
(What should I have for breakfast?)

tappable
“HOTCAKES” {
@zoom on 337 389 to 300% in 1
NARRATOR
Do you want to have Hotcakes for breakfast?

choice
“Yes!” {
gain hotcakes
goto breakfast_rebecca

} “No, let me think of other options…” {
goto choose_breakfast_rebecca

}

} “MEXICAN SCRAMBLED EGGS” {
@zoom on 346 281 to 300% in 1
NARRATOR
Do you want to have Mexican scrambled eggs for breakfast?

choice
“Yes!” {
gain mexicanscrambledeggs
goto breakfast_rebecca

} “No, let me think of other options…” {
goto choose_breakfast_rebecca

}

} “QUESABROSAS” {
@zoom on 343 189 to 300% in 1
NARRATOR
Do you want to have Delicheese quesadillas for breakfast?

choice
“Yes!” {
gain quesabrosas
goto breakfast_rebecca

} “No, let me think of other options…” {
goto choose_breakfast_rebecca

}

}

label breakfast_rebecca
&overlay HOTCAKES clear
&overlay MEXICAN SCRAMBLED EGGS clear
&overlay QUESABROSAS clear

if (hotcakes) {
&REBECCA is react_claphands_happy
@zoom on KATHY to 200% in 0
KATHY (talk_handsonhips_neutral_loop)
Alright. An order of Hotcakes on the way.

} elif (mexicanscrambledeggs) {
&REBECCA is react_claphands_happy
@zoom on KATHY to 200% in 0
KATHY (talk_handsonhips_neutral_loop)
Alright. An order of Mexican scrambled eggs on the way.

} else {
&REBECCA is react_claphands_happy
@zoom on KATHY to 200% in 0
KATHY (talk_handsonhips_neutral_loop)
Alright. An order of Delicheese quesadillas on the way.

}

I don’t know why is it giving this error, because I used the same script for another scene to choose a place to visit, and everything worked fine with that one. This is the other script that is working fine:
&overlay PLAZA create
&overlay PLAZA opacity 1 in 0
&overlay PLAZA shifts to 63 212
&overlay PLAZA scales to 0.172 0.172
&overlay AYUNTAMIENTO create
&overlay AYUNTAMIENTO opacity 1 in 0
&overlay AYUNTAMIENTO shifts to 1 215
&overlay AYUNTAMIENTO scales to 0.172 0.172
&overlay MUELLE create
&overlay MUELLE opacity 1 in 0
&overlay MUELLE shifts to 431 58
&overlay MUELLE scales to 0.172 0.172
&overlay TIENDA create
&overlay TIENDA opacity 1 in 0
&overlay TIENDA shifts to 114 170
&overlay TIENDA scales to 0.172 0.172
&overlay CLINICA create
&overlay CLINICA opacity 1 in 0
&overlay CLINICA shifts to 192 258
&overlay CLINICA scales to 0.172 0.172
&overlay CHECK create
&overlay CHECK opacity 1 in 0
@overlay CHECK shifts to 133 460
@overlay CHECK scales to 0.568 0.568
@cut to zone 1
@speechbubble is 163 397 to 100%
NARRATOR
Select the place you want to visit. Press the check when you’re done.

Does somebody know what is going on with that breakfast script? Thank you so much in advance for your help :heartpulse:

So this a newish script error where you can’t create overlays after a label because then it creates multiple overlays every time you use a goto to go back to that label. You’ll have to create the overlays before the label.

1 Like

Oh, I think I understand what you’re saying. I tried it on my script and it worked. Thank you very much!

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