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

#1 2012-10-30 10:03:59

m-dance
New Scratcher
Registered: 2012-10-29
Posts: 1

Trivia questions

We want to help our son who wants to make a trivia game for a class project. 

1. How do we add a score feature?
2. Is there a way to change a sprite without losing the code you gave to it?
3. I dont know how to add scratch blocks to this question, so i don't know how to show what I tried, but it had to do with ask ____ and wait.  and answer = __________

Any help on basic trivia question creation?

Offline

 

#2 2012-10-30 10:10:46

Willpower
Scratcher
Registered: 2012-01-26
Posts: 1000+

Re: Trivia questions

m-dance wrote:

We want to help our son who wants to make a trivia game for a class project. 

1. How do we add a score feature?
2. Is there a way to change a sprite without losing the code you gave to it?
3. I dont know how to add scratch blocks to this question, so i don't know how to show what I tried, but it had to do with ask ____ and wait.  and answer = __________

Any help on basic trivia question creation?

I think this would fit better in the Help With Scripts forum as Questions About Scratch is not to do with Scripting. Reporting to be moved...


http://i49.tinypic.com/e84kdj.png

Offline

 

#3 2012-10-30 10:17:09

mythbusteranimator
Scratcher
Registered: 2012-02-28
Posts: 1000+

Re: Trivia questions

m-dance wrote:

We want to help our son who wants to make a trivia game for a class project. 

1. How do we add a score feature?
2. Is there a way to change a sprite without losing the code you gave to it?
3. I dont know how to add scratch blocks to this question, so i don't know how to show what I tried, but it had to do with ask ____ and wait.  and answer = __________

Any help on basic trivia question creation?

1. Variables (ie "If touching (POINT) change (score) by (1)
2. I don't understand...
3.

ask (whatever) and wait
if (answer) = (your answer)
do whatever


http://www.foxtrot.com/comics/2012-04-01-fdb37077.gif
clicky

Offline

 

#4 2012-10-30 10:19:07

coinman
Scratcher
Registered: 2011-04-19
Posts: 500+

Re: Trivia questions

Here is a script that should help:

 
when gf clicked
[score v] to [0]
set
ask [question 1 here] and wait
if <(answer) = [answer to question 1 here]>
change [score v] by (1)
else
stop all
end
Repeat this for all the questions but not the green flag and set score to 1


Click the picture below to play my best game yet, Snowball Fight!
http://scratch.mit.edu/static/projects/coinman/3221194_sm.png

Offline

 

#5 2012-10-30 11:34:09

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: Trivia questions

coinman wrote:

Here is a script that should help:

 
when gf clicked
set [score v] to (0)
ask [question 1 here] and wait
if <(answer) = [answer to question 1 here]>
change [score v] by (1)
else
stop all
end
Repeat this for all the questions but not the green flag and set score to 1

Fixed.


http://i46.tinypic.com/35ismmc.png

Offline

 

Board footer