Tappable game menu errors, exiting game?

Hi, so I am trying to make a tappable panning game, but the problem is I can’t exit the game? As in, once the players have collected the items, there should be a choice for them to exit and continue the episode.

I have used one method which was the gain, but still, it wouldn’t let me continue the script. Can someone help me with this? Here’s my script:

INT. LIBRARYHAUNTED with BOOK LAIR with BOXES with TABLE FORTUNES
@overlay BOOK LAIR shifts to 73 71 in zone 1
@overlay BOOK LAIR scales to 0.613 0.613 in zone 1
&overlay BOOK LAIR moves to layer 2

@overlay BOXES shifts to 23 99 in zone 2
@overlay BOXES scales to 0.285 0.285 in zone 2

@overlay TABLE FORTUNES shifts to 37 84 in zone 3
@overlay TABLE FORTUNES scales to 0.587 0.587 in zone 3

label startthegame
tappable [pan:1:3]
“BOOK LAIR” {
gain BOOKLAIR
NARRATOR
You found a stack of books!

    NARRATOR (ARISSA)
Wow... these books look grandeur, what stories and tales do these hold?

@pause for 1
goto startthegame
} “BOXES” {
gain BOXES
NARRATOR
You found a letter!

    NARRATOR (ARISSA)
A letter? What's this?

@pause for 1
goto startthegame
} “TABLE FORTUNES” {
gain TABLEFORTUNES
NARRATOR
You found some type of liquid!

    NARRATOR (ARISSA)
Looks like some sort of chemicals?

@pause for 1
goto startthegame

}
if (BOOK LAIR and BOXES and TABLE FORTUNES) {
NARRATOR
Make sure you collect all three items!
goto next_scene
} else {
goto startthegame
}

label next_scene

Thank you,

Maryam

Hi I had a similar code I used points and gains - I deleted the “inside of the code” - so hopefully it will be more clear the principle

This way it will autmaticly go to the next part of the story after the reader has tapped all 3 items:

@SEARCH =0
label boxes_tap2
if (SEARCH =3) {
goto after_box
} else {
NARR
Search the place.
tappable [pan:3:3]
“BIG BOX” {
if (gray_box) {
NARR
You have already searched this place
goto boxes_tap2
} else {
gain gray_box
@SEARCH +1
#here add what should happen after the tapp
goto boxes_tap2
}
} “BARELY” {
if (barrels) {
NARR
You have already searched this place
goto boxes_tap2
} else {
gain barrels
@SEARCH +1
#here add what should happen after the tapp
goto boxes_tap2
}
} “BLUE_BOX” {
if (blue_box) {
NARR
You have already searched this place
goto boxes_tap2
} else {
gain blue_box
@SEARCH +1
#here add what should happen after the tapp
goto boxes_tap2
}
}
}
label after_box
#here you go on with the story
NARR

1 Like

Thank you for your help!

I actually just took out the else part and let the story proceed, even if they didn’t get all three. But I’ll try your script and I’ll get back to you!

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