Discuss Scratch

bladeberry90
Scratcher
64 posts

meme coding

i've got a meme in progress right now, and all was smooth until i tried to make the faces change when “go” is broadcasted. it works fine when i just click on the coding, but if i press the flag and let it play, it will just switch between the first 2 costumes, even though the code clearly says to flip between costumes 1, 2, 3, 4, 2; then broadcast a different thing.
but its not working?
help

Last edited by bladeberry90 (Nov. 24, 2017 15:45:05)

deck26
Scratcher
1000+ posts

meme coding

That link is, I think, on your computer so not much point giving it here.

We need to see the project so please share it online.
bladeberry90
Scratcher
64 posts

meme coding

deck26 wrote:

That link is, I think, on your computer so not much point giving it here.

We need to see the project so please share it online.
https://scratch.mit.edu/projects/187309734/
Script_Helper
Scratcher
100+ posts

meme coding

For each sprite, broadcast a different message
.. or you could also try
define go
deck26
Scratcher
1000+ posts

meme coding

In leg why have a forever block around the code in the go receiver when the last thing it does is restart itself with a broadcast - one or the other. The broadcast is also restarting the receivers in the other sprites so they don't need forever loops if you're doing things that way.

Overall I think too many broadcasts of go so either do as @Script_Helper says and use a custom block instead or have one sprite or the stage controlling things so only one object is broadcasting go.
PawPrinter
Scratcher
47 posts

meme coding

You put “broadcast go” in a forever loop, so “go” is being broadcasted every few seconds before the sprite can cycle through all of the costumes.

Powered by DjangoBB