Discuss Scratch

gigapouch
Scratcher
1000+ posts

Multiple choice questions

So, my suggestion is, when a project asks you a question with this block:

ask [] and wait

maybe there could be another block that would ask a question that you select the answer to. Like on a survey.
jluong20
Scratcher
27 posts

Multiple choice questions

gigapouch wrote:

So, my suggestion is, when a project asks you a question with this block:

ask [] and wait

maybe there could be another block that would ask a question that you select the answer to. Like on a survey.

It's actually possible with the currently available blocks in Scratch, but it would be pretty complicated, as I have tried.
If you are looking for several multiple choice questions in a project, it would be much harder.
jluong20
Scratcher
27 posts

Multiple choice questions

gigapouch wrote:

So, my suggestion is, when a project asks you a question with this block:

ask [] and wait

maybe there could be another block that would ask a question that you select the answer to. Like on a survey.
Unless you mean you just want people to answer you when you use the block:
ask [blah blah blah] and wait
That would be much easier.
Just do:
ask [] and wait
repeat until <(answer) = [whatever you want]>
ask [the same question] and wait
end
if <(answer) = [whatever you want]> then
do whatever you want if the answer is right
else
do whatever you want if the answer is wrong
end

Last edited by jluong20 (March 2, 2014 16:55:52)

jluong20
Scratcher
27 posts

Multiple choice questions

But if you mean that there are, say, three answers, and there are three sprites (one represents one answer) and one of them is correct while the others are incorrect, that would be the complicated version.
Deerleg
Scratcher
1000+ posts

Multiple choice questions

You could do it the easy way and put up a background with the question and the answers marked A-D and have them type in the letter.
That's what I do.
gigapouch
Scratcher
1000+ posts

Multiple choice questions

Deerleg wrote:

You could do it the easy way and put up a background with the question and the answers marked A-D and have them type in the letter.
That's what I do.

Great idea!
TheCreativeJag
New Scratcher
3 posts

Multiple choice questions

I agree with jluong20. A good idea for a lot of games. I also suggest a block about: instead of ONLY being allowed to use “ask _ and wait” Scratch could add a new one saying “say_and wait” so the player/Scratch member doesn't NEED to reply.
_lya_
New Scratcher
1 post

Multiple choice questions

I'm making a interactive story game, so how would I have multiple answers to a situation? Scratch doesn't have a multiple answer type of question, and how would I then based on the player's answer go into a something else?
einangrun
Scratcher
100+ posts

Multiple choice questions

please don't necro, if you have a question post in the questions about scratch forum.

Last edited by einangrun (Sept. 17, 2017 15:33:43)

Harakou
Scratcher
1000+ posts

Multiple choice questions

There's nothing wrong with necroing a suggestion provided it's on-topic, folks. That said, if you have a question about how to implement such a system yourself, it would be better to make a new topic in Help With Scripts.
Charles12310
Scratcher
1000+ posts

Multiple choice questions

Support, incase there are a lot of choices.
I-Iz-A-Litten
Scratcher
1000+ posts

Multiple choice questions

no support,

Deerleg wrote:

You could do it the easy way and put up a background with the question and the answers marked A-D and have them type in the letter.
That's what I do.
--Waterfall--
Scratcher
500+ posts

Multiple choice questions

Deerleg wrote:

You could do it the easy way and put up a background with the question and the answers marked A-D and have them type in the letter.
That's what I do.
No support.


Water
dertermenter
Scratcher
1000+ posts

Multiple choice questions

I think this is an interesting suggestion, as the current way to do this is quite a hassle (you have to say the answers, and then reset the script if the answer was invalid) and a multiple choice way will fix this.

You could expand this block with answers, like you can do in snap.
mybearworld
Scratcher
1000+ posts

Multiple choice questions

The reply should be in
(answer)
so you can do
when gf clicked
ask [Do you like cheese?] [Yes] [A little] [No] - +::sensing
if <(answer) = [Yes]> then
switch costume to [cheese v]
else
if <(answer) = [A little]> then
switch costume to [half cheese v]
end
end

Powered by DjangoBB