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

#1 2011-10-15 03:10:19

jl0967
New Scratcher
Registered: 2011-10-15
Posts: 2

Questions and Answers

Hey guys,

I'm making a math game when the player touches the ghost, the ghost says a random question from a 10 question list. When the player answers it right, it can keep walking in the maze, and if it is wrong, everything stops.

Please help!

Thanks!

Offline

 

#2 2011-10-15 03:19:15

ssss
Scratcher
Registered: 2007-07-29
Posts: 1000+

Re: Questions and Answers

Hmm... You'll want to do something like this:
[If <(Question) of list = 1>
   [if <(answer) = The answer
   Keep going code
   [Else
   Stop all
]

Repeat this for each question!  wink

If you would like, I an upload this in block format  wink

Last edited by ssss (2011-10-15 03:19:36)


Hey.  It's me SSSS, back from the dead!  smile

Offline

 

#3 2011-10-16 02:05:04

jl0967
New Scratcher
Registered: 2011-10-15
Posts: 2

Re: Questions and Answers

Thanks so much!
Block format would be so much better though.
THANKS ANYWAYS!

Offline

 

#4 2011-10-16 10:49:38

iTweak0r
Scratcher
Registered: 2011-07-30
Posts: 100+

Re: Questions and Answers

here's mine

set (random) to (pick random 1 to 10)
ask (item (random) of [questions]) and wait
if (answer) = (item (random) of [answers]
    keep going
else
    stop all


Make it in Scratch! because it's cooler when it's made in scratch
http://i.imgur.com/D4iqPHR.png

Offline

 

Board footer