Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » What's wrong with my code?
- ski-ttle
-
Scratcher
6 posts
What's wrong with my code?
Maybe it's because I'm new, or something, but on this game that I made, (immune response) there's this button, when that button is pressed it broadcasts to a sprite, when that sprite gets the broadcast, it shows but then immediately hides. Is there a reason for this to be happening?
- GIitchInTheMatrix
-
Scratcher
1000+ posts
What's wrong with my code?
Itll help if we have a link.
But, it seems to me like you need to detect if the sprite has a “forever, hide” loop in it.
But, it seems to me like you need to detect if the sprite has a “forever, hide” loop in it.
- ski-ttle
-
Scratcher
6 posts
What's wrong with my code?
here:https://scratch.mit.edu/projects/741069965/
the project is on my profile too, but I guess you didn't check there for some reason, even though I said the name of the game, and said game is shared.
here's an image of the code:

the project is on my profile too, but I guess you didn't check there for some reason, even though I said the name of the game, and said game is shared.
here's an image of the code:

Last edited by ski-ttle (Oct. 16, 2022 00:54:01)
- cs2722201
-
Scratcher
100+ posts
What's wrong with my code?
what button broadcasts the message and what sprite receives it?
oh wait nvm I saw the picture
oh wait nvm I saw the picture
Last edited by cs2722201 (Oct. 16, 2022 00:57:27)
- GIitchInTheMatrix
-
Scratcher
1000+ posts
What's wrong with my code?
It appears the issue is that it goes behind the effects sprite. I remixed it: https://scratch.mit.edu/projects/746197346/
It appears to fix it.
It appears to fix it.
- Discussion Forums
- » Help with Scripts
-
» What's wrong with my code?