Sir/Man, I’m having a trouble of how can i make a gameplay which the game mechanics is:.
-collect 10 same items
-pop-out question with a default random three question on it.
-question should be pop out upon collecting the 10 items.
-upon answering the question if answer is incorrect should be restart from the scene/level
game must have three trials on each scene/levels if the the player fails at three trials, game must restart from the beginning of the game.
(1) Run your gameplay until some event.
(2) Pause/end gameplay.
(3) Show popup.
(4) On result either restart level/game (incorrect) or do something else (correct).