Tappable overlays error!


Can someone please tell me why I’m getting this error?

maybe try deleting lines 2091 and 2092?

The problem is still persisting :frowning:

Try this and let me know if it works?

tappable [timed:3]
“GREEN DOT” {
NARRATOR
You tapped the green dot…
sound button_click
&zoom on 242 384 to 158% in 2
&ZAVIER walks to spot 0.983 209 169 in zone 1 in 2 and ZAVIER is walk_sneak_loop THEN ZAVIER is idle_argument_angry_loop
@ATHENA walks to spot 0.893 123 171 in zone 1 in 2 and ATHENA is walk_sneak_loop THEN ATHENA is idle_argument_angry_loop
} “else” {
NARRATOR
You tapped (wrong or whatever dialogue you wish)…
sound door_creak
&ZAVIER is talk_argue_defensive
@zoom on 766 363 to 233% in 0.5
@GARBI faces left
GARBI (talk_argue_angry)
Who are you?
NARRATOR
Oh no, you lost, start over!
goto sneak_game
NARRATOR
Try again.
}

Important: Always make sure you’ve spelled your overlay names correctly, don’t leave spaces between a choice and the first option.

This worked thank you so much!

1 Like

Happy to help! :smiling_face:

Hi sorry to come a day later, but for some reason now the overlay is unclickable and the dialogue that is supposed to be shown isn’t showing. And the goto is taking so long to reset. I think I fixed that part but the overlay isn’t fixing.

No worries!
Are any overlays overlapping? The whole overlay is the tappable part which means the transparent ones are also tappable. It could be you have a transparent overlay that it is also being tapped when you’re trying to tap the visible one, if that makes sense.

So if I have another overlay, should I clear it? I do have another overlay way in the beginning of the scene that is sitting all the way in zone 3. Just for more explanation: So the game in my story the green dot appears and re-appears, it seems to work on all of them except the first one, but another thing I do notice is that for all the other “GREEN DOT” does not work, The character Garbi does the action but says nothing. Here are some more screenshots for context, the red dot works completely fine. The other two green dots are clickable, but if you do not click it freezes, or Garbi will do an action and won’t talk. The label also takes a while to go back. Like I said earlier.


1 Like

You only need to make sure your overlays aren’t overlapping, so you don’t need to clear them if they’re not. Could you try using the @ instead of &? So in the first screenshot, try changing it to:

@overlay GREEN DOT create
@overlay GREEN DOT opacity 1.00
@overlay GREEN DOT shifts to 120 275 in zone 1
@overlay GREEN DOT scales to -0.062 -0.062

Check your speechbubble is reset/where it’s visible when Garbi is talking, it could be that it’s not showing up because you’ve moved it just before the tappable choice.

If it helps, I’ve written this out, try it and let me know if there’s any more errors:

@ZAVIER faces right
@zoom on 3 404 to 158% in 0
@overlay GREEN DOT create
@overlay GREEN DOT opacity 1.00
@overlay GREEN DOT shifts to 120 275 in zone 1
@overlay GREEN DOT scales to -0.062 -0.062
label sneak_game
@ZAVIER spot 0.983 140 176 in zone 1 and ZAVIER faces right and ZAVIER is idle_argument_angry_loop
@zoom on 43 338 to 161% in 0
@ATHENA spot 0.893 45 178 in zone 1 and ATHENA faces right and ATHENA is idle_argument_angry_loop
NARRATOR
Click this green dot to move forward slowly, don’t hit the red! This is timed! Click quickly.
@speechbubble is 154 411 to 0%
tappable [timed:2]
“GREEN DOT” {
NARRATOR
You tapped the green dot…
sound button_click
&zoom on 242 384 to 158% in 2
@ZAVIER walks to spot 0.983 209 169 in zone 1 in 2 and ZAVIER does it while walk_sneak_loop THEN ZAVIER is idle_argument_angry_loop
@ATHENA walks to spot 0.893 123 171 in zone 1 in 2 and ATHENA does it while walk_sneak_loop THEN ATHENA is idle_argument_angry_loop
} “else” {
NARRATOR
Your chosen dialogue here.
sound door_creak
&ZAVIER is talk_argue_defensive
@zoom on 766 363 to 233% in 0.5
@GARBI faces left
(Make sure your speechbubble is reset/visible)
GARBI (talk_argue_angry)
Who are you?
NARRATOR
Oh no! You lost, start over!
goto label sneak_game
}
@overlay GREEN DOT clear
@overlay RED DOT create
@overlay RED DOT opacity 1.00 in 1
@overlay RED DOT scales to 0.116 0.116
@overlay RED DOT shifts to 159 222 in zone 1

Yes, you were right, I totally just forgot to reset the speechbubble. The green dot is still not clickable tho.

Are you previewing on the website or app? I think tappables won’t work on the web previewer if the helpers box is open. Also, maybe it’s the speechbubble command right before the first choice, try to remove that completely:

NARRATOR
Click this green dot to move forward slowly, don’t hit the red! This is timed! Click quickly.
(Don’t put the speechbubble command here if possible)
go on to your tappable choice here

Can I ask what the speechbubble command is for? Like, why you need it to be moved, etc?

I deleted it, but I was trying to move the clock timer. I also tried it on the app, it’s not clickable. It’s weird because “GREEN DOT” and “else” is white instead of red.

You mean the timer for the choice? You just put that like this: [timed:2:center] or [timed:2:timer to your coordinates here]

I’m not quite sure what else it could be. I’m not sure if the script is confused by the other option being called “else” due to the if/elif/else code?

Have you tried looking at dara amarie’s guides?

Maybe there’s a solution there that I just cannot seem to find. Sorry I can’t be of more help! I’ve only done tappables a handful of times, but they’ve always worked.

Thanks for trying!

1 Like

Just came back to say I fixed it, it’s because I had negative coordinates. LOL , I also just put a random overlay all the way in zone 3 just so I can have a second overlay to make a complete code.

1 Like

Oh, of course it was that simple :joy: Well done for fixing it!