Tappable Overlay Help : Mini Game

I was trying to make a mini game where the reader can pick up the planks from the scene. But when I run the script, it only lets me collect the first wood and I was unable to collect the others. I want the readers to pan around the scene and collect the woods. Can anyone help or tell me where I’ve gone wrong?

EXT. WINTER ROAD - DAY

&zoom reset

&overlay PLANK create
&overlay PLANK opacity 1 in 0
&overlay PLANK_2 create from PLANK
&overlay PLANK_2 opacity 1 in 0
&overlay PLANK_3 create from PLANK
&overlay PLANK_3 opacity 1 in 0
&overlay PLANK_4 create from PLANK
&overlay PLANK_4 opacity 1 in 0
&overlay PLANK_5 create from PLANK
&overlay PLANK_5 opacity 1 in 0
&overlay PLANK_6 create from PLANK
&overlay PLANK_6 opacity 1 in 0
&overlay PLANK_7 create from PLANK
&overlay PLANK_7 opacity 1 in 0
&overlay 6328541408198656_PLANK shifts to 14 129 in zone 1
&overlay 6328541408198656_PLANK scales to 0.357 0.357
&overlay 6328541408198656_PLANK moves to layer 1
&overlay PLANK_2 shifts to 129 190 in zone 1
&overlay PLANK_2 scales to 0.139 0.139
&overlay PLANK_2 moves to layer 2
&overlay PLANK_3 shifts to 294 118 in zone 1
&overlay PLANK_3 scales to 0.333 0.333
&overlay PLANK_3 moves to layer 3
&overlay PLANK_4 shifts to 116 213 in zone 2
&overlay PLANK_4 scales to 0.127 0.127
&overlay PLANK_4 moves to layer 4
&overlay PLANK_5 shifts to 264 -101 in zone 1
&overlay PLANK_5 scales to 0.915 0.915
&overlay PLANK_5 moves to layer 5
&overlay PLANK_6 shifts to 48 105 in zone 3
&overlay PLANK_6 scales to 0.345 0.345
&overlay PLANK_6 moves to layer 6
&overlay PLANK_7 shifts to 314 4 in zone 2
&overlay PLANK_7 scales to 0.673 0.673
&overlay PLANK_7 moves to layer 7

@transition iris in black in 3

    NARRATOR 
| italic |A mini game session!
| italic |Pan around the forest and collect the wood!

label mini_game

tappable [pan:1:3]
“PLANK”{

@overlay PLANK clear

}
“PLANK 2”{

@overlay PLANK_2 clear

}
“PLANK 3”{

@overlay PLANK_3 clear

}
“PLANK 4”{

@overlay PLANK_4 clear

}
“PLANK 5”{

@overlay PLANK_5 clear

}
“PLANK 6”{

@overlay PLANK_6 clear

}
“PLANK 7”{

@overlay PLANK_7 clear

}

You don’t have goto mini_game, so your readers can’t go back to the game to collect the rest of the planks.
You’d need to use gains or point systems from a random character to ensure the readers have collected all the planks before it moves on to the next scene.

label mini_game

tappable [pan:1:3]
“PLANK”{
gain PLANK
@overlay PLANK clear

}
“PLANK 2”{
gain PLANK2
@overlay PLANK_2 clear

}
“PLANK 3”{
gain PLANK3
@overlay PLANK_3 clear

}
“PLANK 4”{
gain PLANK4
@overlay PLANK_4 clear

}
“PLANK 5”{
gain PLANK5
@overlay PLANK_5 clear

}
“PLANK 6”{
gain PLANK6
@overlay PLANK_6 clear

}
“PLANK 7”{
gain PLANK7
@overlay PLANK_7 clear

}

if (PLANK and PLANK2 and PLANK3 and PLANK4 and PLANK5 and PLANK6 and PLANK7){
[Insert next scene]
}
else{
goto mini_game
}

This is for gains. If you want to use point systems, do the same thing, except replace all the gains for the points.

1 Like

I used your method but I still couldn’t select the 2nd plank. I’ve even tried it on my mobile device. I’ve also tried using the points but same result. :frowning:

Maybe this will work?

1 Like

Hii!
You can check out Mary D Sava’s tutorial …
There’s a game she coded similar to this…
I guess it will help you :blush:

1 Like

Your tappable name must be exactly the same as your overlay name.
It’s not the same for PLANK_2, PLANK_3, all the way to PLANK_7.

1 Like

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