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 gf clicked
show
set [sentence v] to [whatever you want the sentence to be] //NO SPACES here
delete (all v) of [sentence v]
forever
if <<mouse down?> and <touching color [#EEEE00]?>>
stamp
Insert [whatever word this sprite is representing] at (last v) of [sentence v]
end
when [space v] key pressed //or whatever key you want
repeat <length of [sentences v]>
replace item (1 v) of [sentences v] with <join<item (1 v) of [sentences v]><item (2 v) of [sentences v]>>
end
set [person's answer v] to <item (1 v) of [sentences v]>
if <(person's answer)=(sentence)>
say [you got the sentence!]
end
if <not<(person's answer)=(sentence)>>
say [you didn't get the sentence...]
end
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