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

#1 2011-03-15 23:39:55

Freyjainhk
New Scratcher
Registered: 2011-03-15
Posts: 1

Question Answer Game HELP!

Hi,
I have been working on a game called geo challenge. Basically I have a variable Random No. so it asks a random question and then waits for an answer. How do I stop it asking the same question again?
Thanks

Offline

 

#2 2011-03-15 23:50:29

floppy_gunk
Scratcher
Registered: 2008-11-14
Posts: 500+

Re: Question Answer Game HELP!

Have a variable representing the previous question, and use a [repeat until <>] to try again if the question is the same as the previous one.


http://img163.imageshack.us/img163/1917/2856lg.jpg Get it now!  smile

Offline

 

#3 2011-03-16 04:06:58

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Question Answer Game HELP!

Once that number has been called, add it to a list called "called numbers".
When getting a new random number, use the script
http://i1027.photobucket.com/albums/y339/silvisoft/randomrepeat.gif

Offline

 

#4 2011-03-17 14:58:26

Bloodhound781
New Scratcher
Registered: 2011-01-29
Posts: 9

Re: Question Answer Game HELP!

Without lists?


When Flag clicked
Switch to custome 1
Forever
Switch to costume Variable 2  -basicely the questions will show up in different costumes

When question sprite clicked
Broadcast 1

When I recieve 1
Switch to costume   -basicely the questions will show up in different costumes
If Variable 1 = Pick random from (#) to (#)
set variable 2 to Variable 1
Set 1 to any none numerical value
broadcast 1

Offline

 

#5 2011-04-30 12:18:01

dudymate
Scratcher
Registered: 2011-01-07
Posts: 95

Re: Question Answer Game HELP!

bumpy

Offline

 

#6 2011-04-30 13:33:35

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Question Answer Game HELP!

It seems you got an answer already.  smile

Offline

 

Board footer