Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » broadcast triggering multiple times
- zachscratcher1234555
-
19 posts
broadcast triggering multiple times
I'm having trouble with a game I am making and I have a broadcast block triggering the same effect, multiple times, though it only triggers once, and I don't have a continual broad cast. can somebody help me? ( https://scratch.mit.edu/projects/920457697/ is the project for refrence)
- NeonG4
-
1000+ posts
broadcast triggering multiple times
https://scratch.mit.edu/projects/920457697/ is the project for refrence)NeonG4's daily facts: Clone's can receive broadcasts as well! I'm having trouble with a game I am making and I have a broadcast block triggering the same effect, multiple times, though it only triggers once, and I don't have a continual broad cast. can somebody help me? (
If the main sprite is being cloned, then the clones will also run the broadcast. As a solution, try creating a for this sprite only and when a clone gets made, set the variable to something like 3. Under a green flag clicked script, set the variable to 1. Then, when any broadcasts occur, just check if the variable is 3 and if it is, stop the script. This will make sure that only the main sprite runs the broadcast scripts.
- zachscratcher1234555
-
19 posts
broadcast triggering multiple times
oh nice thanks that worked
, I knew they did that but didn't realize that was the problem. that was an issue really confusing me!

- Discussion Forums
- » Help with Scripts
-
» broadcast triggering multiple times