Creating Flash quiz games has taken the game programming field by storm. Quiz games are near the top of the most common games made in Flash; this is because they are simple to make. The programmer must install questions, then create a trigger for the "You Lose!" or "You Win!" screen. This is accomplished by entering precise codes. Flash quiz games are a good start for those prepping for a more intense quiz game programming.
- Skill level:
Other People Are Reading
Launch Adobe Flash. Select "File," and then "New." Click on "Flash File (ActionScript 2.0)" and then select "OK" to create a new document.
Press "F6" four times to create four key frames on your time line. There are now five key frames because one of them won't automatically be created when you launched Flash.
Click on the first key frame. Press "F9" to bring up your actions field in the key frame. Insert the following into the actions field:
Repeat the step for all the key frames.
Select your first key frame. Using the text tool, create your game title. This screen will be your quiz title screen.
Click the "Window" icon on the top menu. Choose "Common Libraries" and then click "Buttons."
Browse the button options and find one to use. Select it and drag it onto your workspace.
Select the button that you added in the last step. Press "F9" to cue the action field; insert the following code into it:
You will now be prompted to the second key frame. Here, you create your first quiz question.
Write a question in the workspace. Make up any question you want.
Write the correct answer in the next text box. Repeat Steps 8 and 9, but write an incorrect answer in the second text box.
Select the correct answer then press "F8," which will initiate a symbol conversion window. Press "Button" for your symbol type and leave the other options the same; press "OK." Repeat this step for your wrong answer.
Select the correct answer. Press "F9" to initiate the actions field. Insert the following code:
The option to install the next question will appear in the third key frame.
Select your incorrect answer. Press "F9" to initiate the actions window. Insert the following code:
The "You Lose!" screen will appear. This is in the fifth key frame.
Choose the third key frame and do Steps 8 through 12 again to create your second question. When typing the Step 12 code into this frame, type "4" as the only number in the code to prompt you to the "You Win!" screen.
Write "You Win!" in the fourth key frame. This is the victory screen.
Add another button to the workspace.
Choose the button with your selection tool; press "F9" to initiate the actions window. Insert the following code:
The first key frame will appear, which is the screen that prompts the player to play the game.
Choose the fifth key frame; repeat Steps 14 to 16. Remember to insert "You Lose!" when you repeat Step 14 this time. This will create the losing screen.
- 20 of the funniest online reviews ever
- 14 Biggest lies people tell in online dating sites
- Hilarious things Google thinks you're trying to search for