Objective: To learn how to utilize the list datatype to create a question/answer database through an indexing scheme. You will also try out the text2speech extension provided through Amazon's web servers.
Final Product (Example of U.S. Gov. Quiz):
Graphical Template: Link
*Please note that you will need to import the text2speech extension in the same way you imported the music (MIDI) and pen extension. If you need a reminder on how to do that please visit either of those two tutorials: MIDI & Pen.*
Scripts:
Sprite4
Sprite3
AnswerThePublic
Sprite2
NextQuestion
AudioSign
Sprite1
Please note that in order to add more questions you will need to duplicate the script (right click on the question "add" command and hit duplicate) in groups of five (i.e. you add another question and four answers to the chain). In my example I ended up with four-hundred add statements which is the equivalent of eighty questions!
Debugging: Check over the way you arrange you addition statements for the questions/answers. If these are in the wrong order then you won't be able to successfully index through the database!
Completed Example: Link (same as final product)
No comments:
Post a Comment