Discuss Scratch

zcribble
New to Scratch
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.

if <problems with script ::sensing> then
share (Project Name) ::extension
set [description v] to (join (Description of problem ::sensing)(link to project ::custom-arg))
Here are my (nerdy) studios: For Math | For Complexity from Simplicity
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]


SHOOT THE SPACE MONSTERS! ….. A game everyone can play! Bright colors, bonky sounds!
THE 12 BALLS OF CRAZY AL ……. New scrolling adventure game!

zcribble
New to Scratch
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.
deck26
Scratcher
1000+ posts

Can't get my sprite to speak

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.

Powered by DjangoBB

Standard | Mobile