Need Help With Tappable Overlay Script

Okay, this is my first time using tappable overlays, so what am I doing wrong. I want the reader to tap a book overlay and the book overlay would disappear

EXT. RED WOOD - DAY
@transition fade in black in 2
&zoom on 320 0 to 100% in 0
@overlay UNDERWATER BOOK COVER create
@overlay UNDERWATER BOOK COVER opacity 1
@overlay 4622412012584960_UNDERWATER BOOK COVER shifts to 47 141 in zone 1
@overlay 4622412012584960_UNDERWATER BOOK COVER scales to 1.000 1.000
@overlay 4622412012584960_UNDERWATER BOOK COVER moves to layer 10

    NARRATOR
You've entered a mini - game. 
    NARRATOR
Before we get started, tap the book. 

tappable
“UNDERWATER BOOK COVER” {

@overlay UNDERWATER BOOK COVER opacity 1 in 0

}

What doesn’t work?

1 Like

When I tried to tap the book, it doesn’t tap.

Have you tried changing the command or code inside the tappable script? If you had something like goto [label] or something that happens like dialogue, it might work then?

1 Like

I would begin by deleting these numbers
And do you see the overlay on the screen?

1 Like

Removed the numbers, but it isn’t working.

I followed this step, hmmm I think its the last one im missing?

Setting a Tappable

tappable

“OVERLAY_1” {

} “OVERLAY_2” {

}

  • To set a tappable, use the same exact coding as a choice, but replace the word “choice” with “tappable”
  • Instead of option titles, you will use the overlay names in all capital letters.
  • Unlike a choice, you do not need to have dialogue to set a tappable.
  • All overlays must be onscreen in order to be tapped.
  • Overlays cannot be stacked on top of each other. The top layered overlay will be the only available overlay to tap.
  • The overlay will darken once tapped.
    > * Overlays can have an opacity of 0 (invisble onscreen) and still be available to tap. You can layer an invisible overlay over a character or a certain spot on a background and readers would be able to tap that character/spot.
    > * The tappable area of an overlay is the rectangle around the entire overlay, which includes the transparent background of the overlay’s PNG image.
    > * You CANNOT invert the scale size of a tappable overlay. Doing this will result in the overlay being un-tappable.
1 Like

Wait, testing it on the app so it tapped.

1 Like

if you want the book to disappear after tapping it, include this line under the choice:

@overlay UNDERWATER BOOK COVER opacity 0 in 0

since it appears you set the opacity to “1” instead of “0”.

1 Like

Thanks!

1 Like

Did it work? I had the same problem a while ago and then I shifted the overlays a little more to the screen center and it worked :slight_smile:

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