Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
multiple choice questions?
Old
moh230
Guest
 
Status:
Posts: n/a
Default multiple choice questions? - 01-12-2010, 04:05 PM

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.
   
Reply With Quote
Old
x2495iiii
Super Moderator
 
x2495iiii's Avatar
 
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 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.

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


(')>
   
Reply With Quote
Multiple choice questions
Old
djslater107
Administrator
 
Status: Offline
Posts: 190
Join Date: Jan 2007
Default Multiple choice questions - 03-22-2021, 06:46 AM

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


Don Slater
Alice Team
Carnegie Mellon University
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



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