Discuss Scratch

Kevinbestkiller
Scratcher
21 posts

How to do multiple answers?

So i want to the person to do multiple answers but how to do from here?
when green flag clicked
say [] for (2) secs
if <(answer) = [ ]> then
say [hi] for (2) secs
end

Last edited by Kevinbestkiller (May 30, 2016 19:11:11)

mstone326
Scratcher
1000+ posts

How to do multiple answers?

Put it in a forever loop for multiple questions and answers. Here is an example of a simple math game I made for with my students. But you can't use a say block along with the answer block. You need to use the Ask block found in sensing.

https://scratch.mit.edu/projects/111607831/

Or in the case of this project the user has 3 attempts to correctly answer the question.

https://scratch.mit.edu/projects/111591168/

Last edited by mstone326 (May 30, 2016 19:15:48)

deck26
Scratcher
1000+ posts

How to do multiple answers?

when green flag clicked
say [] for (2) secs
ask [] and wait // otherwise 'answer' won't contain anything useful!
if <(answer) = [ ]> then
say [A] for (2) secs
else
if <(answer) = [ ]> then
say [B] for (2) secs
else
if <(answer) = [ ]> then
say [C] for (2) secs
end
and so on
k_god
Scratcher
1 post

How to do multiple answers?

is it possible to combine multiple answers together

EX: answer 1 is 9
answer 2 is 5
then combine them like result is 95
mstone326
Scratcher
1000+ posts

How to do multiple answers?

k_god wrote:

is it possible to combine multiple answers together

EX: answer 1 is 9
answer 2 is 5
then combine them like result is 95

Yes by using the join block.

(join (answer_1) (answer_2))

But in the future instead of digging up a topic from 2016 it would be best if you created a new topic so we can help. They refer to digging up and replying to old topics necroposting, and that is discouraged on these forums.

Powered by DjangoBB