Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Help with speech ( Say command )
- tobkelsus
-
Scratcher
6 posts
Help with speech ( Say command )
Howdy folks! I was wondering if you could help me out with something. I want to write a script were if the mouse pointer is touching a sprite it will say something, and once it is off the words will disappear. The problem is that if I use the “say <Text> for <Time> seconds command it is constantly updating and flashing the message on and off, which is annoying. But if I use the simple ”Say" command it won't ever go away. Is there a way to clear it? I'd really appreciate it!
- ScratchPad1
-
Scratcher
21 posts
Help with speech ( Say command )
I think the information you are missing is that the Say <Blank> block will clear the Say speech bubble.
Hope this helps.
when green flag clicked
forever
if <touching [mouse-pointer]> then
say [Hello]
else
say []
end
end
Hope this helps.
- footsocktoe
-
Scratcher
1000+ posts
Help with speech ( Say command )
It's even easier than that…
I don't know what you mean by “flashing on and off”. You must be adding some kind of delay with your script.
when green flag clicked
forever
if <touching [mouse pointer v] ?> then
say [Hello!] for (.1) secs
end
end
I don't know what you mean by “flashing on and off”. You must be adding some kind of delay with your script.
- deck26
-
Scratcher
1000+ posts
Help with speech ( Say command )
forever
say []
wait until <touching [mouse-pointer v] ?>
say [hello]
wait until <not <touching [mouse-pointer v] ?>>
- Discussion Forums
- » Help with Scripts
-
» Help with speech ( Say command )