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

#1 2012-03-22 10:57:11

suchak
New Scratcher
Registered: 2012-02-24
Posts: 2

Questions and Answers Game

I have a questions and answers game - 60 seconds to answer 12 questions. Once timer is up the background chaneges and the sprite which asks the questions dissapears all good. The box, in which the questions are answered, however still remains on the second background. The script finishes with 'stop script' to stop the questions repeating.
Are there any ideas of how to stop the answer box appearing on the next screen?

At the moment I have:

[scratchblocks]
when gf clicked
[forever]
  if <(level) = [2]).
    [show]
    ask [question]
  else
    [hide]
    [stop script]
end

Which isnt working.

Thanks

Offline

 

#2 2012-03-22 17:19:15

turkey3
Scratcher
Registered: 2011-12-04
Posts: 500+

Re: Questions and Answers Game

By "box" I think you mean list. Make sure you make the list still showing when the background changes. I was a bit confused in what you were trying to say, so please don't get mad if I sound clueless. I think you may have a script that hides the list, AKA "box".

Offline

 

#3 2012-04-03 17:17:03

aryabtsev
Scratcher
Registered: 2012-02-05
Posts: 81

Re: Questions and Answers Game

I'm not sure how to fix this, but if by "box" you mean the answer bar at the bottom, when you put a script

ask (question) and wait
The script is paused until user answer something. So according to your script, I don't think it would even hide until the user does so.


http://i.imgur.com/NX7AO.jpg

Offline

 

Board footer