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

#1 2012-04-11 02:13:15

sitab
New Scratcher
Registered: 2012-04-03
Posts: 4

How stopping bouncing word

Please, I need to 'stick' some bouncing words -and others moving a little- to a yellow ground. The idea is to use the mouse to take them there. If one word gets 'glued', the others have to keep on moving. I need my students to put a sentence in the correct order.
Lots of thanks!

Offline

 

#2 2012-04-11 02:27:16

TorbyFork234
Scratcher
Registered: 2012-03-01
Posts: 1000+

Re: How stopping bouncing word

You can let them be dragged by clicking the lock next to the Sprites name. Then, you can use this script

when clicked
show
set
sentence
to
whatever you want the sentence to be
NO SPACES here
delete
all
of
sentence
forever
if
mouse down?
and
touching color
?
stamp
Insert
whatever word this sprite is representing
at
last
of
sentence

when
space
key pressed
or whatever key you want
repeat
length of
sentences
replace item
1
of
sentences
with
join
item
1
of
sentences
item
2
of
sentences
set
person's answer
to
item
1
of
sentences
if
person's answer
=
sentence
say
you got the sentence!
if
not
person's answer
=
sentence
say
you didn't get the sentence...

That would work where the first script would be under every sprite and the space key script would be on one sprite. It would only work if the people place the words in order of the sentence.

Offline

 

Board footer