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

#1 2012-05-19 12:50:40

JVCaptain
New Scratcher
Registered: 2012-02-02
Posts: 3

Making a Quiz Game

What is an easy way to be able to make an easy multiple choice quiz game? can someone either explain how or post the link to a simple script asking questions and having different answers, one of which is right

thanks a lot folks

Offline

 

#2 2012-05-19 14:44:24

Prestige
Scratcher
Registered: 2008-12-15
Posts: 100+

Re: Making a Quiz Game

Try just asking a question, if answer = correct answer change points by 1.


"Don't insult someone until you've walked a mile in their shoes. That way, if they don't like what you have to say, you'll be a mile away and still have their shoes  smile  "

Offline

 

#3 2012-05-19 16:12:05

sonicfan12p
Scratcher
Registered: 2011-11-16
Posts: 1000+

Re: Making a Quiz Game

Prestige wrote:

Try just asking a question, if answer = correct answer change points by 1.

I don't think that's what JVCaptain is going for here. He/She wants a multiple choice game. You could try this though, have separate sprites for each answer, A, B, C, and D. Have each of these sprites change costumes according to the question, each with a possible answer. You will need a question variable to do this. Then have a,

When [answer A] clicked
if < (question) = [2]>
broadcast [ correct v]
change [question v] by [1]
else
broadcast [ incorrect v]
Just have this script for all the answer sprites. You will need to change the number of the question for each one, but that's it.


Why are the secret organizations getting all the attention?  mad

Offline

 

#4 2012-05-19 22:26:52

darthvader111
Scratcher
Registered: 2010-03-12
Posts: 45

Re: Making a Quiz Game

Make a different costume for four sprites that are the answers for every different level. Make a different background for every different level as well.

For the background:

When flag clicked:
Forever:
Set background to (level)

Or if you have a main menu background:

When flag clicked:
Forever:
Set background to (background#+1) 

For the sprites:

When flag clicked:
Forever if:
     Level = level x                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
     If (mouse down and touching mouse pointer)
     Change (score) by 1
     Change (level) by 1
If touching (mouse pointer) and (mouse down) and (level = x or level = y or level = z)...
     Broadcast - Incorrect answer              - Meaning do whatever you choose to do

Offline

 

Board footer