Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Can't get my sprite to speak
- zcribble
-
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.
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!
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!
- FiveCubed
-
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.
- footsocktoe
-
1000+ 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!
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
-
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!
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
-
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.
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
-
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-
-
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
-
1000+ posts
Can't get my sprite to speak
please don't necropost, this thread is from 2017. you should create a new topic for your question. 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?
- mik768atra
-
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.
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-
-
1 post
Can't get my sprite to speak
You should really create youir own new topic rather than posting on someone else's. 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
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
-
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]> thenThe internet is not the issue… What could be wrong?
set [Cannot Speak v] to [Yes]
end
- Discussion Forums
- » Help with Scripts
-
» Can't get my sprite to speak