How to Make Your Own Quiz Game in Flash

Written by phillip woolgar
  • Share
  • Tweet
  • Share
  • Pin
  • Email
How to Make Your Own Quiz Game in Flash
Make your own Flash quiz game. (computer image by Orlando Florin Rosu from Fotolia.com)

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:
Easy

Other People Are Reading

Instructions

  1. 1

    Launch Adobe Flash. Select "File," and then "New." Click on "Flash File (ActionScript 2.0)" and then select "OK" to create a new document.

  2. 2

    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.

  3. 3

    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:

    stop()

    Repeat the step for all the key frames.

  4. 4

    Select your first key frame. Using the text tool, create your game title. This screen will be your quiz title screen.

  5. 5

    Click the "Window" icon on the top menu. Choose "Common Libraries" and then click "Buttons."

  6. 6

    Browse the button options and find one to use. Select it and drag it onto your workspace.

  7. 7

    Select the button that you added in the last step. Press "F9" to cue the action field; insert the following code into it:

    on (release){

    gotoAndStop(2)

    }

    You will now be prompted to the second key frame. Here, you create your first quiz question.

  8. 8

    Write a question in the workspace. Make up any question you want.

  9. 9

    Write the correct answer in the next text box. Repeat Steps 8 and 9, but write an incorrect answer in the second text box.

  10. 10

    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.

  11. 11

    Select the correct answer. Press "F9" to initiate the actions field. Insert the following code:

    on (release){

    gotoAndStop(3);

    }

    The option to install the next question will appear in the third key frame.

  12. 12

    Select your incorrect answer. Press "F9" to initiate the actions window. Insert the following code:

    on (release){

    gotoAndStop(5);

    }

    The "You Lose!" screen will appear. This is in the fifth key frame.

  13. 13

    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.

  14. 14

    Write "You Win!" in the fourth key frame. This is the victory screen.

  15. 15

    Add another button to the workspace.

  16. 16

    Choose the button with your selection tool; press "F9" to initiate the actions window. Insert the following code:

    on (release){

    gotoAndStop(1);

    }

    The first key frame will appear, which is the screen that prompts the player to play the game.

  17. 17

    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.

Don't Miss

Filter:
  • All types
  • Articles
  • Slideshows
  • Videos
Sort:
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the eHow.co.uk site, you consent to the use of cookies. For more information, please see our Cookie policy.