How to Stop Flash Game?
July 10, 2013 12:00 AM
I am having a couple of issues using the pre-built Millionaire game in Lectora.
First issue:
I am utilizing the Million Dollar Question game within a Lectora, and I can't seem to figure out how to program it to go to the next page when the game is done. I can add a button to the bottom of the page but I would like the learner to have to complete the game before moving on to the next page.
Second issue:
I am trying to have a page, text box, or image pop-up over the game after 15 minutes so the learner has a time limit to answer all fifteen questions.
Discussion (1)
The Million Dollar Question game contains a variable that stores how many questions the user has answered. You can use that variable to check if the user has reached the end of the game.
To do that add an action to the page with the game:
On: Timed Interval
Interval: 0.0
Delay: 0.0
Action: Flash command
Target: MillionDollarQuestion
Command: Get Variable
Command Setting:
Name: _level0.currentQ
Variable: flash_questions (create a Lectora variable to save the value of the Flash variable)
The variable flash_questions will now be updated with the number of questions the user has answered and click on "Continue" in the game. If you have 10 questions in your game, flash_questions will be equal to 10, when the "Game Over" screen is displayed in the animaton.
You can use another action:
On: Timed Interval
Interval: 0.0
Delay: 0.0
Action: Goto (or Show)
Target: Next Page (or Next button)
Condition: Only if flash_questions equal to 10
Tim
Discussions have been disabled for this post