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

#1 2011-11-13 16:13:16

supercow9001
New Scratcher
Registered: 2011-11-13
Posts: 2

How to make a multiple choice question that moves a sprite?

I want to know how to make a multiple choice question that moves a sprite when it is correct. Any help is appreciated!

Offline

 

#2 2011-11-13 16:42:19

DigiTechs
Scratcher
Registered: 2011-04-30
Posts: 500+

Re: How to make a multiple choice question that moves a sprite?

Well, it depends on how you put it, because the most common way is by getting the "Ask ___ and wait" block and putting an "If <answer = [_____]> then" after it and telling the sprite to move if they have the answer correct.


I'm back.
Maybe.

Offline

 

#3 2011-11-14 10:45:41

RedRocker227
Scratcher
Registered: 2011-10-26
Posts: 1000+

Re: How to make a multiple choice question that moves a sprite?

DigiTechs wrote:

Well, it depends on how you put it, because the most common way is by getting the "Ask ___ and wait" block and putting an "If <answer = [_____]> then" after it and telling the sprite to move if they have the answer correct.

That way would work, but it would require a lots of 'ors' to make sure it didn't matter if they capitalised it or not, or put a full stop at the end of it etc. I would suggest making buttons which the player can click to choose their answer. It may be harder to make, but it would be easier for the player as they wouldn't have to worry about spelling mistakes and typos.

For the moving part, put:

When right answer clicked
Broadcast 'correct answer selected'

And then on the sprite you want to move:

When I receive 'correct answer selected'
Rest of script
smile


Why

Offline

 

#4 2011-11-17 13:47:12

supercow9001
New Scratcher
Registered: 2011-11-13
Posts: 2

Re: How to make a multiple choice question that moves a sprite?

Can I make it so if you click one sprite, another one animates, and a sound plays?

Offline

 

#5 2011-11-17 13:55:35

RedRocker227
Scratcher
Registered: 2011-10-26
Posts: 1000+

Re: How to make a multiple choice question that moves a sprite?

supercow9001 wrote:

Can I make it so if you click one sprite, another one animates, and a sound plays?

Yes. Put this on the sprite you want clicked:

When (me) clicked
Broadcast 'move'

Then on the moving sprite:

When I receive 'move'
Play sound (sound)
Moving script here


Why

Offline

 

#6 2012-03-02 19:19:59

Backlong
Scratcher
Registered: 2011-09-20
Posts: 33

Re: How to make a multiple choice question that moves a sprite?

when gf clicked
ask [insert question here]
if <(answer)=[insert answer here]
  go to [mouse pointer v]
else
  go to [not mouse pointer v]


http://mag.racked.eu/cimage/i5006/Found+an+Island/Y+U+COW+SO+RED%21%3F/mca.png
And people called me weird for thinking mooshrooms were glitched cows...

Offline

 

#7 2012-03-02 19:21:51

Backlong
Scratcher
Registered: 2011-09-20
Posts: 33

Re: How to make a multiple choice question that moves a sprite?

Backlong wrote:

when gf clicked
ask [insert question here]
if <(answer)=[insert answer here]
  go to [mouse pointer v]
else
  go to [not mouse pointer v]

Oops, I meant:

when gf clicked
ask [insert question here]
if <[answer]=[insert answer here]
  go to [mouse pointer v]
else
  go to [not mouse pointer v]


http://mag.racked.eu/cimage/i5006/Found+an+Island/Y+U+COW+SO+RED%21%3F/mca.png
And people called me weird for thinking mooshrooms were glitched cows...

Offline

 

#8 2012-03-02 19:23:08

Backlong
Scratcher
Registered: 2011-09-20
Posts: 33

Re: How to make a multiple choice question that moves a sprite?

Backlong wrote:

Backlong wrote:

when gf clicked
ask [insert question here]
if <(answer)=[insert answer here]
  go to [mouse pointer v]
else
  go to [not mouse pointer v]

Oops, I meant:

when gf clicked
ask [insert question here]
if <[answer]=[insert answer here]
  go to [mouse pointer v]
else
  go to [not mouse pointer v]

Ugghh, I don't know how to do it.


http://mag.racked.eu/cimage/i5006/Found+an+Island/Y+U+COW+SO+RED%21%3F/mca.png
And people called me weird for thinking mooshrooms were glitched cows...

Offline

 

#9 2012-03-03 12:21:07

RedRocker227
Scratcher
Registered: 2011-10-26
Posts: 1000+

Re: How to make a multiple choice question that moves a sprite?

Backlong wrote:

when gf clicked
ask [insert question here]
if <(answer)=[insert answer here]>
  go to [mouse pointer v]
else
  go to [not mouse pointer v]

Fixed.

Please don't necropost though -.-


Why

Offline

 

#10 2012-03-16 18:35:38

Backlong
Scratcher
Registered: 2011-09-20
Posts: 33

Re: How to make a multiple choice question that moves a sprite?

RedRocker227 wrote:

Backlong wrote:

when gf clicked
ask [insert question here]
if <(answer)=[insert answer here]>
  go to [mouse pointer v]
else
  go to [not mouse pointer v]

Fixed.

Please don't necropost though -.-

Necropost? What is that? I figured it out though:

when gf clicked
repeat until <(answer) = [insert answer here]>
ask [insert question here] and wait
if <(answer) = [insert answer here]
  go to [where you want it to go v]
else
  say [whatever, it doesn't have to be say] for (3) secs
end
end


http://mag.racked.eu/cimage/i5006/Found+an+Island/Y+U+COW+SO+RED%21%3F/mca.png
And people called me weird for thinking mooshrooms were glitched cows...

Offline

 

#11 2012-04-15 05:40:53

butterflygirl2001
Scratcher
Registered: 2011-10-07
Posts: 4

Re: How to make a multiple choice question that moves a sprite?

how do you make the ask insert question here thing pop up?

Offline

 

Board footer