I'm confused: Tappable Mini Game

So, I’m trying to do a tappable game, where I let the reader pan around the screen, and to select some items. In total, there are 15 items, but I want the reader to only select 12 of them. Then after that, they will have a chance to select one of the last 3 items. I have the code, but I’m confused on how to move on after. :blob_turtle: :blob_hearts:

Code

@transition fade out black 2
INT. SHELLYS with AMMO to 0.304 202 304 with BOBEANS to 0.266 24 321 in zone 2 with COMBU to 0.439 186 395 in zone 2 with ENERGYBS to 0.254 263 230 in zone 1 with FLASHL to 0.481 124 212 in zone 1 with KNIFE to 0.361 135 309 in zone 2 with LIGTERS to 0.169 223 332 in zone 2 with LIPSTICK to 0.176 136 333 in zone 1 with MEDKIT to 0.521 71 227 in zone 2 with MEDSU to 0.250 27 240 with MIRROR1 to 0.482 -4 321 in zone 1 with POP to 0.269 39 322 in zone 1 with RBLANK to 0.374 171 399 with WATSB to 0.194 74 422 with RAMENS to 0.264 77 403 in zone 2 with BBAGG to 0.772 210 -28 in zone 1

volume music 60 2000
music music_noirfunk
&zoom on 0 568 to 147% in 0
@OPHELIA spot 1.280 -114 21 in zone 1

@transition fade in black 1
@pause for 0.9

    NARR
|highlight:yellow, italic| You have now entered a mini-game.
You will only collect |underline, bold| 12 items.
After you have chosen your items, I will give you |bold, color:red| 1 chance to pick one item |reset| in the shelf.
Good Luck!

label items
readerMessage Move the screen around to find other ones.

    NARR
Choose |bold, underline| 12 items.

tappable [pan:1:2:both]
“AMMO”{

    NARR
An ammo box - to keep your gun loaded.
Would you like to take this?

choice
“Yes” {
&overlay AMMO opacity 0 in 0.5
@pause for 0.7
goto items

gain AMMO
}“No, I want to keep looking”{
@speechbubble is 0 0 to 0%
NARR
Yes!
@speechbubble reset
goto items
}
}“BOBEANS”{

    NARR
Can of beans - for hunger.
Would you like to take this?

choice
“Yes” {
&overlay BOBEANS opacity 0 in 0.5
@pause for 0.7
goto items

gain BOBENAS
}“No, I want to keep looking”{
@speechbubble is 0 0 to 0%
NARR
Yes!
@speechbubble reset

goto items
}
}“ENERGYBS”{

    NARR
Energy bars - for hunger.
Would you like to take this?

choice
“Yes” {
&overlay ENERGYBS opacity 0 in 0.5
@pause for 0.7
goto items

gain ENERGYBS
}“No, I want to keep looking”{
@speechbubble is 0 0 to 0%
NARR
Yes!
@speechbubble reset

goto items
}
}“FLASHL”{

    NARR
A flashlight - to help you see in darker areas.
Would you like to take this?

choice
“Yes” {
&overlay FLASHL opacity 0 in 0.5
@pause for 0.7
goto items

gain FLASHL
}“No, I want to keep looking”{
@speechbubble is 0 0 to 0%
NARR
Yes!
@speechbubble reset

goto items
}
}“KNIFE”{

    NARR
A knife - a weapon to defend yourself.
Would you like to take this?

choice
“Yes” {
&overlay KNIFE opacity 0 in 0.5
@pause for 0.7
goto items

gain KNIFE
}“No, I want to keep looking”{
@speechbubble is 0 0 to 0%
NARR
Yes!
@speechbubble reset

goto items
}
}“LIGTERS”{

    NARR
A lighter - to help light something (as a flashlight or to make a fire).
Would you like to take this?

choice
“Yes” {
&overlay LIGTERS opacity 0 in 0.5
@pause for 0.7
goto items

gain LIGTERS
}“No, I want to keep looking”{
@speechbubble is 0 0 to 0%
NARR
Yes!
@speechbubble reset

goto items
}
}“MEDKIT”{

    NARR
A medkit - for wounds or damages to your body.
Would you like to take this?

choice
“Yes” {
&overlay MEDKIT opacity 0 in 0.5
@pause for 0.7
goto items

gain MEDKIT
}“No, I want to keep looking”{
@speechbubble is 0 0 to 0%
NARR
Yes!
@speechbubble reset

goto items
}
}“MEDSU”{

    NARR
Medicine - to cure yourself from a disease, symptoms, or illnesses.
Would you like to take this?

choice
“Yes” {
&overlay MEDSU opacity 0 in 0.5
@pause for 0.7
goto items

gain MEDSU
}“No, I want to keep looking”{
@speechbubble is 0 0 to 0%
NARR
Yes!
@speechbubble reset

goto items
}
}“POP”{

    NARR
Soda - for thirst.
Would you like to take this?

choice
“Yes” {
&overlay POP opacity 0 in 0.5
@pause for 0.7
goto items

gain POP
}“No, I want to keep looking”{
@speechbubble is 0 0 to 0%
NARR
Yes!
@speechbubble reset

goto items
}
}“RBLANK”{

    NARR
A blanket - for warmth & comfort.
Would you like to take this?

choice
“Yes” {
&overlay RBLANK opacity 0 in 0.5
@pause for 0.7
goto items

gain RBLANK
}“No, I want to keep looking”{
@speechbubble is 0 0 to 0%
NARR
Yes!
@speechbubble reset

goto items
}
}“WATSB”{

    NARR
A water bottle - for thirst.
Would you like to take this?

choice
“Yes” {
&overlay WATSB opacity 0 in 0.5
@pause for 0.7
goto items

gain WATSB
}“No, I want to keep looking”{
@speechbubble is 0 0 to 0%
NARR
Yes!
@speechbubble reset

goto items
}
}“RAMENS”{

    NARR
A ramen cup - for hunger.
Would you like to take this?

choice
“Yes” {
&overlay RAMENS opacity 0 in 0.5
@pause for 0.7
goto items

gain RAMENS
}“No, I want to keep looking”{
@speechbubble is 0 0 to 0%
NARR
Yes!
@speechbubble reset

goto items
}
}

if (AMMO and BOBEANS and ENERGYBS and FLASHL and KNIFE and LIGTERS and MEDSU and MEDKIT and RAMENS and WATSB and RBLANK and POP) {

    NARR
These are your items.

goto cont_items

} else {
goto items
}

label cont_items

    NARR
Now, please select |bold| 1 item.

choice
“COMBU”{

    NARR
A hair brush - this will let you change your hairstyle throughout the story.
Would you like to take this?

choice
“Yes” {
&overlay COMBU opacity 0 in 0.5
@pause for 0.7
goto finished_1

gain COMBU
}“No! Let me go back!”{
@speechbubble is 0 0 to 0%
NARR
Yes!
@speechbubble reset

goto cont_items
}
}“LIPSTICK”{

    NARR
Lipstick - this will allow you to change your lip color throughout the story.
Would you like to take this?

choice
“Yes” {
&overlay LIPSTICK opacity 0 in 0.5
@pause for 0.7
goto finished_1

gain LIPSTICK
}“No, I want to keep looking”{
@speechbubble is 0 0 to 0%
NARR
Yes!
@speechbubble reset

goto cont_items
}
}“MIRROR1”{

    NARR
A mirror - to see a reflection of something or yourself.
Would you like to take this?

choice
“Yes” {
&overlay MIRROR1 opacity 0 in 0.5
@pause for 0.7
goto finished_1

gain MIRROR1
}“No, I want to keep looking”{
@speechbubble is 0 0 to 0%
NARR
Yes!
@speechbubble reset

goto cont_items
}
}

label finished_1
&zoom reset
&OPHELIA starts tinker_kneel_neutral_loop_rear AND OPHELIA faces left

Images

pv1_back_AMMO_5314831758065664_ff07b6fcd9a7cfa78f59045995eec88e
AMMO
pv1_back_BOBEANS_5486725274730496_ff07b6fcd9a7cfa78f59045995eec88e
BOBEANS
pv1_back_COMBU_6628687402958848_ff07b6fcd9a7cfa78f59045995eec88e
COMBU
pv1_back_ENERGYBS_5137412950523904_ff07b6fcd9a7cfa78f59045995eec88e
ENERGYBS
pv1_back_FLASHL_5909645201440768_ff07b6fcd9a7cfa78f59045995eec88e
FLASHL
pv1_back_KNIFE_4960164884709376_ff07b6fcd9a7cfa78f59045995eec88e
KNIFE
pv1_back_LIGTERS_5005148442787840_ff07b6fcd9a7cfa78f59045995eec88e
LIGTERS
pv1_back_LIPSTICK_5475463585267712_ff07b6fcd9a7cfa78f59045995eec88e
LIPSTICK
pv1_back_MEDKIT_5125462489235456_ff07b6fcd9a7cfa78f59045995eec88e
MEDKIT
pv1_back_MEDSU_5547132697903104_ff07b6fcd9a7cfa78f59045995eec88e
MEDSU
pv1_back_MIRROR1_5831431752581120_ff07b6fcd9a7cfa78f59045995eec88e
MIRROR1
pv1_back_POP_5941674741268480_ff07b6fcd9a7cfa78f59045995eec88e
POP
pv1_back_RAMENS_5071394672672768_ff07b6fcd9a7cfa78f59045995eec88e
RAMENS
pv1_back_RBLANK_4909926568361984_ff07b6fcd9a7cfa78f59045995eec88e
RBLANK
pv1_back_WATSB_4903187043254272_ff07b6fcd9a7cfa78f59045995eec88e
WATSB

Background

pv1_back_INT__SHELLYS_4580529789403136_ff07b6fcd9a7cfa78f59045995eec88e

1 Like

I’m not sure I understand your question. Where exactly is it not moving on from?

1 Like

I want the reader to pick 12/15 items. After they select all 12, I want to give them a chance to pick 1 item of the last 3 that are left. Does that make sense?

1 Like

I’d I understand correctly…
Add a point after each item the reader selects. Once the reader has 12 points, that first part of the game is done. Then comes the second part where they choose one of the 3 items.

Is that what you’re asking?

1 Like

Ah yes, that sounds like it. Do I get rid of the gains? I’m also confused if I did something wrong with the “if”/“else” part :sweat_smile:

1 Like

Does it matter which 12 items are picked? If not, I don’t see why you need gains.

If you just change the opacity, they can still tap on the overlay. You will want to remove it altogether once they have confirmed yes.

Why not just let them pick 13? I don’t see why you want 12 and then one more.
But if you do, you can add
If(points=12)
NARR
you have selected 12 items. You may choose one more of the remaining 3 items.
Else they just keep selecting until they reach 12.
Make sense?

1 Like

Ok, I guess I’ll do 13 items then, how do I fix my script? I’m kinda new to the points system. :confused:

1 Like

Either create a new character or choose and existing one (that doesn’t have points). I’m calling this person POINTS.
Make sure they start with 0 points.
@POINTS =0

Start your game, like you have it entered…
tappable
“AMMO”{
NARR
Would you like to take this?
choice
“Yes”{
@overlay AMMO clear (instead of opacity 0, otherwise, the reader can’t see it, but can still tap it)
@POINTS +1
gain AMMO (if you need to remember what the reader picked)
if(POINTS =12){
goto cont_items
}
else{
goto items
}}
“No”{

goto items
}}

label cont_items
…what you have here is no longer a tappable choice. Is that what you want? It is only the list of items that you will see (COMBU, LIPSTICK and MIRROR1). I see you entered these as overlays, but during the game, the reader will not be able to tap them, as they are not part of the tappable choices.

1 Like

Okay, I still want it to be tappable tho. I think my main problem is that, after I tapped on all the items, it won’t let me continue to move on the next scene. So basically, I should change the “opacity part” & use the point system?

I was using this as a guide:

Help! Tappable mini game - #7 by dukii_x

2 Likes

If you use the points, once you hit 12 points, it should move to the next part.
The question is, do you want the last 3 items to be tappable too!? You didn’t make that a tappable choice.

1 Like

Oh yeah, I do. If I change that to tappable would it work?

1 Like

Those 3 items you have for the second part cannot be selected in the first part where they select 12, right? And how many are there in that first group? 12 or more? Sorry, I didn’t count.

After they select those 12 (you will know because of the points), then you can do a tappable for the last 3.

1 Like

Yes, correct :smiley:, In total, there r 14 items - I don’t want to use the mirror.

2 Likes

Personally, I wouldn’t pan the last few items. But that’s up to you.

1 Like

Yeah, I think I’ll just make them as regular choices. Can I put @overlay NAME clear, after the opacity part? Idk, can u tell me what changes in the script, I need to do - I’m sry :sneezing_face: jus need a bit of clarification :’)

1 Like

Once the reader has confirmed they want the item, you want to
@overlay AMMO clear
@POINTS +1

Then
If(POINTS =12){
goto the next part of the game (I forgot the label name)
}
else{
goto tappable part again, except you’ve cleared the overlay, so they can’t tap it again.
}

1 Like

tysmm for ur help!! :sob: :sob:

2 Likes

Did it work the way you wanted it to???

2 Likes

Yes, it did! :sneezing_face:

2 Likes

I’m so happy :grin:

1 Like