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

#1 2012-12-20 12:52:17

GenChico
Scratcher
Registered: 2012-11-08
Posts: 100+

Trivia game help

Need help with this. After you finish the science trivia questions it still says You have got 1 out of 3 on famous quotes even if you haven't done famous quotes. I know the scripts might be very messy, still pretty new.


The correct answers for science are: B, then c, then D. For Famous quotes if you want them for some reason are:  A, D, B


http://scratch.mit.edu/projects/GenChica/2993940


http://i.imgur.com/Cb8HC.png

Offline

 

#2 2012-12-20 13:03:51

Smozzick
Scratcher
Registered: 2011-10-23
Posts: 100+

Re: Trivia game help

Pretty sure the problem is that it's resetting the science variable to 0 before its changed the costume on the score sprite so when it's checking what to do it hasn't got any costume change to make and the default costume is shown.

The costume you end up with is actually whatever its set to before that point (if you set it to a different costume beforehand it would end up as that instead).


How to fix

Move all of the set variable to 0 bits from When I receive Done With Category into When Redo Clicked. Make sure that the Show block stays in when I receive done with category.

Last edited by Smozzick (2012-12-20 13:09:07)


http://i50.tinypic.com/ded8m.png

Offline

 

#3 2012-12-20 13:28:42

GenChico
Scratcher
Registered: 2012-11-08
Posts: 100+

Re: Trivia game help

Wow thanks, can't believe i missed that. I thought it was something to do with the score scripting.


http://i.imgur.com/Cb8HC.png

Offline

 

#4 2012-12-20 13:36:34

cheddargirl
Scratch Team
Registered: 2008-09-15
Posts: 1000+

Re: Trivia game help

Closed by request.


http://i.imgur.com/8QRYx.png
Everything is better when you add a little cheddar, because when you have cheese your life is at ease  smile

Offline

 

Board footer