Discuss Scratch

zcribble
New Scratcher
2 posts

Can't get my sprite to speak

I'm new to Scratch and this is probably something really simple, but for the life of me, I can't figure it out!

On a test project I can make the cat say Meow, but for my project I can't get my sprite to say game over.

when I receive [gameover]
switch costume to [c]
say [Game Over!]
hide variable [Points]

My sprite will switch costumes and the points will disappear, but it won't speak…

I don't know what I'm doing wrong… any help is appreciated!
GethPrime
Scratcher
55 posts

Can't get my sprite to speak

can you share it please
FiveCubed
Scratcher
100+ posts

Can't get my sprite to speak

Perhaps you have a “stop all” block fired immediately after gameover is broadcasted, causing the speech bubble to disappear. If you would like more help, please share and provide a link to the project.
GethPrime
Scratcher
55 posts

Can't get my sprite to speak

That is what i was going to say. lol
footsocktoe
Scratcher
1000+ posts

Can't get my sprite to speak

zcribble wrote:

I'm new to Scratch and this is probably something really simple, but for the life of me, I can't figure it out!

On a test project I can make the cat say Meow, but for my project I can't get my sprite to say game over.

when I receive [gameover]
switch costume to [c]
say [Game Over!]
hide variable [Points]

My sprite will switch costumes and the points will disappear, but it won't speak…

I don't know what I'm doing wrong… any help is appreciated!

There are two different say blocks. Use the other one.

when I receive [gameover]
switch costume to [c]
say [Game Over!] for (10) secs
hide variable [Points]
zcribble
New Scratcher
2 posts

Can't get my sprite to speak

Thank you for the advice.

I'm actually not using the stop all function… I just hide all my sprites, except for the main character, when the game ends.

I feel like I'm taking one step forward and three steps back… lol

I tried the say () for () seconds block and that worked! But now when my game starts, it starts with my sprite saying “GAME OVER!” for 2 seconds, my background doesn't come up anymore and my blobs use to hide and then come one screen one at a time, but they start on the screen right away…

I feel super awkward sharing this…. but you can find my first project here: https://scratch.mit.edu/projects/151963034/

Once again, thank you for your help!
kirkbye2022
Scratcher
7 posts

Can't get my sprite to speak

I can't get the sprite to speak no matter what I do.
I'm making a 3 minute animation for my advanced tech class. I have tried putting a broadcast block at the end of my title page and then putting a when I receive block. It won't work. This is the code I used that will not work for me but for everyone else.

when I receive [2]
say [I'm so excited for Christmas!!] for (5) secs

Last edited by kirkbye2022 (Dec. 7, 2017 20:31:33)

kirkbye2022
Scratcher
7 posts

Can't get my sprite to speak

I have until friday to have my animation done…… but I haven't even got 30 seconds done yet…… any help will be greatly appreciated.
-EpicGamerBoyAZ-
Scratcher
5 posts

Can't get my sprite to speak

I am having the same problem.The variables are correct, and “Talk Rio!” And the variable is still correct, but he refuses to speak. It doesn't work when I simply click the block either. Can someone help?
DerpyHead0
Scratcher
1000+ posts

Can't get my sprite to speak

-EpicGamerBoyAZ- wrote:

I am having the same problem.The variables are correct, and “Talk Rio!” And the variable is still correct, but he refuses to speak. It doesn't work when I simply click the block either. Can someone help?
please don't necropost, this thread is from 2017. you should create a new topic for your question.
mik768atra
Scratcher
9 posts

Can't get my sprite to speak

I can't get my one as well. My project is this: https://scratch.mit.edu/projects/452451121/
Just to 1 for username and password. This is for my school project. I am changing the sprite to a white square, to show nothing, and it doesn't speak. press start game, start practicing, fractions (Bottom Left) and Addition. It doesn't work. Help would be much appreciated.

Last edited by mik768atra (Jan. 12, 2021 08:16:00)

-WizardToad-
Scratcher
1 post

Can't get my sprite to speak

deck26 wrote:

kirkbye2022 wrote:

I can't get the sprite to speak no matter what I do.
I'm making a 3 minute animation for my advanced tech class. I have tried putting a broadcast block at the end of my title page and then putting a when I receive block. It won't work. This is the code I used that will not work for me but for everyone else.

when I receive [2]
say [I'm so excited for Christmas!!] for (5) secs
You should really create youir own new topic rather than posting on someone else's.

Is the sprite hidden? It can't say anything if it is. Does the script work if you run it manually? Can you share the project as we'll resolve this very quickly if you do that and identify where we can find the script and how to trigger it.

I'm having a similar problem, and the script works when I run it manually, but not when the game activates it. My character will say something, but it's only meant to say it for three seconds, however, it won't go to the next part of the code.
1superscratchcat
Scratcher
25 posts

Can't get my sprite to speak

I'm trying to get a sprite to speak using the “text to speech” extention.
when green flag clicked
if <[Cannot Speak] = [Yes]> then
say [I can't speak :(] for (2) secs
end
if <[internet] = [0]> then
set [Cannot Speak v] to [Yes]
end
The internet is not the issue… What could be wrong?

Powered by DjangoBB