How to create a timed mini game?

Hello friends!
I need your help
So I created this mini game with tappable overlays
how do I make this game timed as well as pannable?

Hi so I really need your help.
I am creating a mini game and I want the timer to appear on the screen
the script is :
NARRATOR
Did you understand the rules?
choice “Yes I did”{
@ui DONE create
@ui DONE opacity 100% in 0
@ui 5261395722698752_DONE shifts to 48 377 in zone 3
@overlay 5261395722698752_DONE scales to 0.222 0.222
@overlay 5261395722698752_DONE moves to layer 9

    NARRATOR
Now onto the game

goto coo
} “No,explain again”{
goto explain
}

label coo
@cut to zone 3
label game1

tappable [pan:1:4]
“WRAPPER”{
@KRYSTYNA +1
@ALESSIA spot 0.958 243 116 in zone 4
@ALESSIA moves to layer 4
readerMessage Job +1
@ALESSIA +1
@ALESSIA is spray_spraypaint_kneel_loop_rear
@pause for a beat
&overlay WRAPPER opacity 0 in 0.4
@overlay WRAPPER clear
@ALESSIA is standup_neutral
goto game1
}
“GARBAGE”{
@KRYSTYNA +1
@ALESSIA spot 0.958 18 173 in zone 3
@ALESSIA moves to layer 2

readerMessage Job +1
@ALESSIA +1
@ALESSIA is tinker_kneel_neutral_loop_rear
@pause for a beat
&overlay GARBAGE opacity 0 in 0.4
@overlay GARBAGE clear
@ALESSIA is standup_neutral
goto game1
}
“FORK”{
@KRYSTYNA +1
@ALESSIA faces left
@ALESSIA spot 0.958 42 153 in zone 4
@ALESSIA moves to layer 4
readerMessage Job +1
@ALESSIA +1
@ALESSIA is pickup_object_neutral
@pause for a beat
@overlay FORK opacity 0 in 0.4
@overlay FORK clear
@ALESSIA is standup_neutral
goto game1
}
“CAN”{
@KRYSTYNA +1
@ALESSIA spot 0.958 18 148 in zone 4
@ALESSIA moves to layer 4
readerMessage Job +1
@ALESSIA +1
@ALESSIA is tinker_kneel_neutral_loop
@pause for a beat
@overlay CAN opacity 0 in 0.4
@overlay CAN clear
@ALESSIA is standup_neutral
goto game1
}
“CRUMPLED_PAPER”{
@KRYSTYNA +1
@ALESSIA spot 0.958 110 163 in zone 3
@ALESSIA moves to layer 4
readerMessage Job +1
@ALESSIA +1
@ALESSIA is spray_spraypaint_stand_loop_rear
@pause for a beat
@overlay CRUMPLED_PAPER opacity 0 in 0.4
@overlay CRUMPLED_PAPER clear
@ALESSIA is idle
goto game1
}
“DONE”{
goto after

}
NARRATOR
Do you want to retry?
choice “Yes” {
goto game1

} “No” {

}

So can I make it pan and timed at same time??? And how to make the timer appear at the screen as long as the game is going on. Please tell @Dara.Amarie or anyone please

to make it timed, you need to create an solid-color overlay which is 640x1136px. then put it in your script as a ui, make it tappable and place it off-screen. when time’s up, you make it shift to cover the entire screen so the readers can’t tap on anything else except it. use the code:
&pause for (seconds) THEN ui UI shifts to (covering the entire screen)

you have to create your own custom timer overlays and place them on screen as this mini-game is technically not using the usual coding for timed mini-games!

1 Like

Thank you so much I’ll give it a try just now and ask you for further reference :smiling_face_with_three_hearts: :grin:

1 Like

no problem :smiling_face_with_three_hearts:

I updated the script now can you tell me ,I tried your earlier solution but it didn’t work :pensive:

what did you do? btw the overlay has to be at the top layer, so it covers everything else