Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   How do I...? (http://www.alice.org/community/forumdisplay.php?f=16)
-   -   multiple choice questions? (http://www.alice.org/community/showthread.php?t=3765)

moh230 01-12-2010 04:05 PM

multiple choice questions?
 
hey, okay so i created 3d text in alice, i made my essay appear there and i made it move slowly so the person could read it and after the essay is done, i want a penguin to come out and ask them 10 multiple choice questions to see if they were paying attention. so how could i do that? pictues will also help alot. thank you very much.

x2495iiii 01-12-2010 09:00 PM

I wrote a similar program for my King Arthur presentation. Take a look at that to see an example of how you might do it. It's called King Arthur Trivia.

[url]http://www.alice.org/community/showthread.php?t=2034[/url]

djslater107 03-22-2021 06:46 AM

Multiple choice questions
 
Perhaps create each question as a powerpoint slide, export each slide as an image, import each image as a billboard... possible answers included on the slide

(perhaps create an array or array list of these slides. to use the for each in control)

each possible answer numbered (1, 2, 3, 4...) not letters (a, b, c, d...)

Display each billboard, one at a time

Use the getIntegerFromUser function to have the user enter their choice

Check their answer against the correct answer and
-- add one to correct answer variable is correct
-- add one to incorrect answer variable if incorrect

Display results after all questions are asked...

Hope this helps!

Don Slater
Alice Project


All times are GMT -5. The time now is 12:32 PM.

Copyright ©2021, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.