This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-08-26 14:54:31

IHeartGaming
Scratcher
Registered: 2010-07-23
Posts: 1000+

Make a trivia game, easy??

How? Is it even possible?


IHeartGaming

Offline

 

#2 2010-08-26 15:08:17

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Make a trivia game, easy??

What kind of trivia game do you have in mind? How does the user get points? Explain to us the details and we'll be able to help you out  smile

Offline

 

#3 2010-08-26 15:11:57

IHeartGaming
Scratcher
Registered: 2010-07-23
Posts: 1000+

Re: Make a trivia game, easy??

1 point each question correct (use variable)
But how for questions (and their answers)? Lists???


IHeartGaming

Offline

 

#4 2010-08-26 15:14:45

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Make a trivia game, easy??

IHeartGaming wrote:

1 point each question correct (use variable)
But how for questions (and their answers)? Lists???

Yep! I demonstrated something along these lines a couple months ago for Minadoan, but it'll work for you, too - just take out the time limit  smile

Here's what I did for Minadoan. If you don't understand the scripts, let me know and I'll explain them for you  smile

Offline

 

#5 2010-08-26 15:21:37

IHeartGaming
Scratcher
Registered: 2010-07-23
Posts: 1000+

Re: Make a trivia game, easy??

I don't understand the scripts...
I'm a new-b.


IHeartGaming

Offline

 

#6 2010-08-26 15:54:46

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Make a trivia game, easy??

You don't really need a list, although it's convenient. You can just write in every question like this:

Code:

when green flag clicked
Ask (question) and wait
If <answer = correct_answer>
    Change score by 1
EndIf

...and continue that script for as many questions as you need. Remember that answer is a blue block in the sensing category, not an orange variable you make.

Last edited by Harakou (2010-08-26 15:56:02)


http://www.blocks.scratchr.org/API.php?action=random&amp;return=image&amp;link1=http://i.imgur.com/OZn2RD3.png&amp;link2=http://i.imgur.com/duzaGTB.png&amp;link3=http://i.imgur.com/CrDGvvZ.png&amp;link4=http://i.imgur.com/POEpQyZ.png&amp;link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

Board footer